all groups > macromedia flash flash remoting > may 2004 >
You're in the

macromedia flash flash remoting

group:

ListBox - DataGlue Problem



ListBox - DataGlue Problem CyrilAnthony
5/16/2004 8:22:45 PM
macromedia flash flash remoting: Hi All,

I am using the calendar component to populate a listbox with a list of
available times from the database using DataGlue. I then try to select one of
these times from the list box to populate another list box with a list of other
choices drawn from the database. I tried to use the times_lb.getSelectedItems
to capture the times to send to the database but it is not working. Is this
because I populated the times_lb with using DataGlue. Is there another way of
populating the list box that better suits this sort of scenario.

I'd appreciate some help with this issue,

Thanks,

Anthony
Re: ListBox - DataGlue Problem night981
5/17/2004 6:55:38 AM
Hey Cyril,

I was just going through your question and decided to do a little research on
the listbox component. It appears that the listbox component doesn't have a
method named as "getSelectedItems" as you said you were using. However it does
have a property that holds the same value "selectedItem" or "selectedItems" for
multiple items.

You might want to try passing this value (times_lb.selectedItem OR
times_lb.selectedItems) to the coldfusion component method that retrieves more
relevant data based on the the value of the selected time.

Im using Flash mx 2004 here, so i might be wrong about the methods listing if
you're using Flash MX. But try it out, it might just work.. if not :P post a
reply and i'll see if i can come up with something else.

Do check out this tutorial though:
http://www.macromedia.com/devnet/mx/coldfusion/articles/remoting.html

Hope I've helped.
Jonathan Cash
Re: ListBox - DataGlue Problem CyrilAnthony
5/18/2004 3:44:05 AM
Thank you Night981 for replying to my post.

I am using Flash MX and the method is definitely "getSelectedItem". I
downloaded a trial version of Flash MX 2004 and I see the method has changed to
"SelectedItem" as you pointed out. The method is just not selecting the time
from the listbox so I can send it to the database. I might try and do the same
thing in Flash MX 2004.

Thank sagain for your help and your advice about where to find further help.

Anthony
AddThis Social Bookmark Button