PDA

View Full Version : Array from HttpService


captainjon
10-01-2007, 09:57 AM
Hi,

Maybe this is really simple, but I need to retrieve an array from a httpservice and manipulate it, and then bind it to a ComboBox, but keeping
the other properties intact.

I bring back name, id, colour from the service, but want bind it to a ComboBox. I need 2 references to it but one ComboBox with a "ALL". I can retrieve it as XML okay, but I think an array would be better,

thanks,
Jon

flexy
10-01-2007, 11:46 AM
myHTTPService.resultFormat="array";

captainjon
10-04-2007, 09:16 AM
thanks,

I also discovered

ArrayUtil.toArray(httpservice.result...),

Cheers,

Jon

flexy
10-04-2007, 11:41 AM
Yep, that's a useful one if you want to preserve the format that your service returns data as; converting it to an Array only when it arrives at your app :)