--------------------------------------------------------------------------------
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
Niemo - 08 Mar 2006 16:05 GMT
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 = "";
}