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

macromedia flash flash remoting

group:

combo box with dataGlue problem


combo box with dataGlue problem melo-mel
8/3/2004 1:28:51 PM
macromedia flash flash remoting: Hi,

Could someone please explain why i can' t do the following?

DataGlue.bindFormatStrings(cboTopic, re.result, "#topic#", "#topicID#" );
cboTopic.addItem( {label:"coolStuff",data:22} );

The 2nd line won't work, if i execute the first line. I get an undefined item
in the comboBox. But if i don't execute the first line i do get "coolStuff"
in the comboBox.

Any insight would be greatly appreciated.

mike
Re: combo box with dataGlue question? melo-mel
8/3/2004 6:16:52 PM
The following code works.

DataGlue.bindFormatStrings(cboTopic, re.result, "#topic#", "#topicID#" );
cboTopic.dataProvider.addItem( {topic:"coolStuff",topicID:22});

I guess the label and data properties change, and you have to call it on the
dataProvider, not on the combobox.


AddThis Social Bookmark Button