Selecting the populated ComboBox with the query data could look like this (again a number of assumptions have been made here):

myRecord_result = function(result) {
  firstName_txt.text = result.items[0].firstName;
  lastName_txt.text = result.items[0].lastName;
  email_txt.text = result.items[0].email;
  // select the ComboBox with query data
  // set a variable equal to the number of items in the ComboBox
  var num = countryCombo.getLength();
  // loop over the items in the ComboBox
  for (var i = 0;i<num;i++) {
    // compare current ComboBox label against result & select if match
    if (countryCombo.getItemAt(i).label == result.items[0].country) {
      countryCombo.setSelectedItem(i);
      break;
    }
  }
}

Andrew

Jason Bayly wrote:

I got the combo boxes covered using the DataGlue.bindFormatStrings()
function..

Im just trying to understand how to work with record sets from CF that DONT
need to be bound to a combo / list box etc.. I just want to be able to use
the data as one would normally, when filling out a form so a user can modify
and resubmit..

jason


--
Andrew Muller
Senior Macromedia Certified Instructor - ColdFusion, Flash
Certified Advanced Macromedia ColdFusion Developer - CF5, CFMX
Certified Macromedia Flash Developer - FL5, FMX

Daemon Internet Consultants
[EMAIL PROTECTED]
Macromedia Certified Training
http://www.daemon.com.au/go/training
T: 61 2 9380 4162
F: 61 2 9380 4204
17 Roslyn Gardens
Elizabeth Bay NSW 2011 AUSTRALIA

Daemon: Serious Web Development

FarCry, the open source CMS for ColdFusion MX
http://farcry.daemon.com.au/


--- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to