on 11-14-2007 2:26 PM
Hi xMIItes,
I'm trying to populate data of a Xacute query in a combobox in Flex. The query is defined properly and returns proper data.
I'm not able to assign the values to combobox... I have tried following combinations of code in Flex...
<mx:ArrayCollection id="stateAC" source="{orderList.lastResult.Rowsets.Rowset.Row}"/>
<mx:HTTPService id="orderList"/>
<mx:ComboBox x="130" y="10" dataProvider="{stateAC}">
</mx:ComboBox>
<b>This doesn't return Anything
</b>
<mx:HTTPService id="orderList"/>
<mx:ComboBox x="130" y="10" dataProvider="{orderList.lastResult.Rowsets.Rowset.Row}">
</mx:ComboBox>
<b>It returns a combobox full of text ..........[object] [object].....[object]...</b>
<mx:HTTPService id="orderList"/>
<mx:ComboBox x="130" y="10" dataProvider="{orderList.lastResult.Rowsets.Rowset.Row}">
</mx:ComboBox>
<b>it doesn't return anything in combobox</b>
Please help me find a solution
Regards,
Musarrat
Hi Musarrat,
we managed to get the results with WebService, here is an example. I assume you have built the Flex application mxml with something like "...creationComplete="orderList.Xacute.send()" to execute the remote request.
The WebService definition (URL is for xMII 12.0, maybe you must change it to http://<server>:<Port>/Lighthammer/ for version 11). You should also try if you really need the login name and password.
<mx:WebService id ="orderList"
wsdl="http://<server>:<Port>/XMII/WSDLGen/<Path-to-transaction>/<transaction-name>"
useProxy="false">
<mx:operation name="Xacute" resultFormat="e4x">
<mx:request>
<XacuteRequest>
<InputParams>
<LoginName> ... </LoginName>
<LoginPassword> ... </LoginPassword>
<Your-Input-Parameter> input value </Your-Input-Parameter>
</InputParams>
<XacuteRequest>
<mx:request>
<mx:operation>
</mx:WebService>
We have used an XMLListCollection to store the data like this (you have to use the resultFormat e4x with the remote call to make this work):
<mx: XMLListCollection id="xc"
source="{orderList.Xacute.lastResult.Rowset.Row}" />
You can then use the dataProvider="".
Hope this helps.
Regards
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.