|
Hi, Can some one help me out to do the following. I am making a remoteobject call on a java class which returns a java VO populated with values. I did created a mxml file with Form in it. Form has textinput controls matching VO attributes. Now my question is how to see values when I run the mxml file?
I tried following methods but not successes. Please any help appreciated. Method 1 <mx:RemoteObject id="itemDetailController" source="gov.bls.ppi.janus.repricing.manageitems.controllers.ItemDetailController" showBusyCursor="true"> <mx:method name="getItemTerms" result="myData=event.result;searchIdx()" fault="showError(event.fault.faultString)"> <mx:arguments> <arg1>itemsid</arg1> <arg2>indRefMonth</arg2> <arg3>monthNum</arg3> </mx:arguments> </mx:method> </mx:RemoteObject>
where myData is declared as follows <mx:Script> <![CDATA[ var myData:Object; ]]> </mx:Script>
and tried to bind attributes to form controls as follows <mx:TextInput id="sizeoforder" text="{myDatal.size_of_order_desc}" width="300" textAlign="left"/>
I also tried using model instead of action script variable <mx:Model id="termsModel"> <type_of_buyer_code /> <type_of_buyer_detail /> <contract_terms_desc /> <size_of_shipment_desc /> <size_of_order_desc /> </mx:Model>
and changed the remoteobject as follows
<mx:method name="getItemTerms" result="termsModel=event.result;searchIdx()" fault="showError(event.fault.faultString)"> <mx:arguments> <arg1>itemsid</arg1> <arg2>indRefMonth</arg2> <arg3>monthNum</arg3> </mx:arguments> </mx:method> and Form element as follows <mx:TextInput id="sizeoforder" text="{termsModel.size_of_order_desc}" width="90" textAlign="left"/>
Still I could not see the data on screen, but I do able to see data on Network Monitor. Please help me out from this high priority task for me. Thanks!
-- 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] RemoteObject result Doodi, Hari - BLS CTR
- [flexcoders] Re: RemoteObject result Ghislain Simard

