Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / March 2006



Tip: Looking for answers? Try searching our database.

Dynamic Combobox Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kmontecalvo - 07 Mar 2006 15:36 GMT
--------------------------------------------------------------------------------

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 = "";
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.