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

macromedia flash flash remoting

group:

Recordset Manipulation


Recordset Manipulation nmariano
6/7/2006 12:44:12 PM
macromedia flash flash remoting:
I unable to display the record of a number of fields in my recordset. I need
to assign it to a variable so I could assign it to a number of texfields. I can
only get their columnames but I need to get specific records on a specific
field and row. The one I am working on has 5 fields and I wont be using any ui
components to display the text.

Thanks.
Re: Recordset Manipulation jag57
6/9/2006 6:32:46 PM
Have you looked at the RecordSet documentation yet?

Hit F1 > Flash Remoting Actionscript Dictionary > All Classes > look for
RecordSet in the panel on the right.

I think the function you want would be getItemAt(index:Number). Here's how to
get the "name" for the first record.

recordset.getItemAt(0).name
Re: Recordset Manipulation nmariano
6/10/2006 4:49:10 AM
Yes I did. I already tried that but didnt work.

This is what I did.

var mydata:Object = RecordSet(re.result);
var rsItems:Array = mydata.items;
post_txt.htmlText = rsItems[0].post_text;

Thanks for replying.
AddThis Social Bookmark Button