Dear Matt,
     As i am afraid that my component have something wrong about the
input parameter . So i have already use method 1 to test it and it is
ok. But if the component is using with the repeater . Then error form.
thx


capho



--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> #3 looked like it should work to me.  So none of the input parameters
> are correct?  Are there any values?  What component does your InputField
> extend?  Maybe it's not playing with databinding correctly?  Maybe you
> overrode a method without calling the superclass version?
> 
> Matt
> 
> -----Original Message-----
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of sinacapho
> Sent: Sunday, February 19, 2006 6:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Use component within the repeater
> 
> Dear All,
> i am now facing a problem with repeater . I have writing a component
> completely by actionscript . As i want to generate that component
> dynamically .i use <mx:Repeater> to help me. For example i use the
> following code to do show.
> 
> 1. I should like to check if my component can work well so i create
> the component with testing input. i find it is ok
> 
> <gp:InputField Input_type = "asdfasdfsd"
> Input_label = "asdfasdfasdf"
> Input_fieldname = "asdfasdfas"
> Input_default = "sdfgd">
> </gp:InputField>
> 
> 2. Then i test the dataProvider using Repeater and i also works fine
> 
> <mx:Repeater id="componment_repeater"
> dataProvider="{httpservice_function_form.result.array.Item}">
> <mx:Label text =
> "{componment_repeater.currentItem.fieldLabel}"></mx:Label>
> </mx:Repeater>
> 
> 3. I begin to using the repeater to generate the component , however
> can create the correct number of component, but all the input
> parameter cannot get. >_<
> 
> <mx:Repeater id="componment_repeater1"
> dataProvider="{httpservice_function_form.result.array.Item}">
> <gp:InputField Input_type =
> "{componment_repeater1.currentItem.fieldType}"
> Input_label = "{componment_repeater1.currentItem.fieldLabel}"
> Input_fieldname = "{componment_repeater1.currentItem.fieldName}"
> Input_default = "{componment_repeater1.currentItem.fieldDefault}">
> </gp:InputField>
> </mx:Repeater-->
> 
> 4. So i using the repeater with "repeat" function and using
> actionscript to create the component. It 's Fine ^_^
> 
> <mx:Repeater id="componment_repeater2"
> dataProvider="{httpservice_function_form.result.array.Item}"
> repeat="capcap(event.target)"/>
> 
> function capcap(items){
> var ddd = function_form.createChild(InputField,
> undefined,
> {Input_type:items.currentItem.fieldType,
> Input_label:items.currentItem.fieldLabel,
> Input_fieldname:items.currentItem.fieldName,
> Input_help_id:items.currentItem.funcId,
> Input_function_id:report_model.function_id,
> Input_default:items.currentItem.fieldDefault}
> );
> }
> 
> 
> i think that method 3 and 4 are the same, But why this happen?? i
> prefer to using method 3 as i need not consider about the recreate
> problem and it is much more standard. Can somebody help me?
> 
> 
> capho
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to