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

flash data integration

group:

Set the selectedItem in a comboBox (binding)


Set the selectedItem in a comboBox (binding) Loxam
2/7/2005 6:05:59 PM
flash data integration:
I've a XMLConnector
I've a Combobox component (with items)

How do I set an item in the combobox to be selected based on its value? I
wanted to use binding with a combobox so that the value in my XMLConnector
will automatically be selected in the combobox.

Thanks

Re: Set the selectedItem in a comboBox (binding) R!ch
2/8/2005 7:29:58 PM
HI,

Lets say you have a combo box named "gender" that has the values of "male" and
"female". And that you have an XML document that has an employees data.
Lastly you have an XML connector that has the name "getEmployee" assigned to
it. First you would need to have the XML connector get the correct document.
Then you could go into the binding and choose the item that represents the
eployees gender. Next bind that item the schema item called "value" found in
the "gender" combobox. Make sure that your binding type is "out" , or
"in/out" as you are binding the XmlConnector out to the combobox. There you go
it is now bound.
AddThis Social Bookmark Button