Critz,
Within your trace you reference cols[j,i]. There's two problems with that.
For one, to reference a two dimensional array (technically an array of
arrays in AS), you'd need to reference it as cols[j][i]. The other problem
is that cols is only a one dimensional array. It will only return an array
of the columns names, not the data itself.
What do you need to display the tabular data for anyways? One possibility
would be to have your app show an identifier in a listbox (first & last name
perhaps) and when the user clicks on the name in the listbox, it will
populate a set of textboxes that are labeled for each of the columns you
want to display. The only downside is that you would only be able to show
all the data for one column at a time using this method.
Ben Johnson
Hostworks, Inc.
-----Original Message-----
From: Critz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 4:28 PM
To: CF-Talk
Subject: Flash MX and CF (again)
Ok, so i am working on the table bit...
it seems a resulting query has these methods:
RecordSet.getColumnnames
RecordSet.getLength
RecordSet.getItemAt
RecordSet.getItemID
RecordSet.sortItemsBy
RecordSet.getNumberAvailable
I thought I might be able to do something such as:
var cols = result.getColumnNames();
for(var i=0; i< result.getLength();i++){
tables.addRowAt(i+1);
for(var j=0; j< cols.length;j++){
trace(cols[j,i]);
}
but it just throws out an undefined. Anybody know how I can get to the
actual row data???
--
Best regards,
Critter, MMCP
Certified ColdFusion Developer
Crit[s2k] - <CF_ChannelOp Network="EFNet" Channel="ColdFusion">
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists