all groups > flash data integration > march 2005 >
You're in the

flash data integration

group:

Binding WS to the List Component


Binding WS to the List Component twelvevoltman
3/20/2005 8:17:32 PM
flash data integration:
I'm having some trouble with binding a web service to a list component and
would appreciate some help...

I've written a simple CFC to use as a webservice that returns a query with
UserName and UserID. I then have a Web Service Connector retrieve that data
from Flash MX 2004 Pro. I have then bound the results to a list component
(tried both direct from the wsConnector and also using a data set). I can see
the data in the list component, but I each row shows the username and the user
id separated by commas and then followed by a trailing comma.

I have tried a number of things to correct this. I have tried using the
"Rearrange Fields" formatter and this results in "undefined, undefined,"
showing up. I have tried adding fields to the schema for either the dataset or
the list component, but that doesn't solve my problem either. I have tried
aliasing the columns in CF Query to be "label" and "data", but no luck.

Finally, I have worked through about a half dozen demos and tutorials from the
web. These have all been excellent and very helpful. However, because I cannot
find one that is populating a list component from a CFC, then I can't figure
out what I'm doing wrong. I don't even know if my problem is on the CF or flash
side. Can anyone either offer me some advice, offer a link to a tutorial or
sample, anything?

Thanks in advance.
Re: Binding WS to the List Component madgett
3/25/2005 3:38:27 AM
Have you tried a custom formatter? What you can do is refer the raw data to the
formatter just before it reaches the list component and then break up the text
using the comma as the delimiter and then rejoin the text which will do away
with the commas. Plus custom formatters do lots more that string manipulation,
they can pretty much do any manipulation to any datatype. Look up 'Custom
Formatter' in the Flash Help, it's really a great feature, it works really well.
Re: Binding WS to the List Component bclingan
5/24/2005 12:00:00 AM
AddThis Social Bookmark Button