all groups > macromedia flash flash remoting > march 2006 >
You're in the

macromedia flash flash remoting

group:

Dynamic Combobox Problem


Dynamic Combobox Problem kmontecalvo
3/7/2006 3:36:15 PM
macromedia flash flash remoting:
--------------------------------------------------------------------------------

Hello all -

I am trying to populate a ComboBox from a ColdFusion component. The cfc is
simply querying a db to get a list of products.

However, the code I am placing in the Actions panel:

function PartsList_Result(result) {
DataGlue.bindFormatStrings(test_cb, result, "#name#", "#partsID#");
}

doesn't appear to be working correctly. The only result I see is a blank box
that when I hit the arrow, the first item in the query is returned. From what I
have read, I thought that the code above would be all I need. So I'm not sure
why:
1. The first item is not automatically selected
2. The rest of the list is not there.

I assume I'm being stupid, so I would appreciate any guidance you can lend.

Thanks,
Keith
Re: Dynamic Combobox Problem Niemo
3/8/2006 4:05:28 PM
Are you using MX or MX 2004? If you are using MX 2004, the bindFormatStrings
functions don't work. There is a different methodology to do this such as:

myFunction_Result(myRecordSet_rs):Void
{
myComboBox_cb.dataProvider = myRecordSet_rs;
myComboBox_cb.labelField = "";
}
AddThis Social Bookmark Button