RE: [Flashcoders] dynamic creation of a datagrid

2006-05-10 Thread Matthew Simpson
x++; var z = theXML.firstChild.firstChild; for (var i = 0; imailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 1:51 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] dynamic creation of a datagrid I use a perl script that give me a big strin

RE: [Flashcoders] dynamic creation of a datagrid

2006-05-10 Thread Mike Levy
Hey, You probably need some metadata about the datagrid, like number of columns and then you can add columns dynamically and then once all that is done, assign a DataProvider with the appropriate data to the datagrid. I attached some code for you to look at, as I have done this. There is probabl

RE: [Flashcoders] dynamic creation of a datagrid

2006-05-10 Thread riccardo.roasio
I use a perl script that give me a big string with | as row delimiter and # as cell delimiter. I'm able to spit it by rows and split every row . I also have another string with all headers. I'm able to add headers but i don't know how to add data... ___

RE: [Flashcoders] dynamic creation of a datagrid

2006-05-10 Thread Matthew Simpson
How is the data traveling back to flash from the DB? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 1:39 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] dynamic creation of a datagrid Hi

[Flashcoders] dynamic creation of a datagrid

2006-05-10 Thread riccardo.roasio
Hi, i need to put into a datagrid data coming from a db. The problem is the number of columns is variable. I use addColumn to add n new columns with their names, but when is time to use assItem i don't know what to do... The use of addItem is addItem( { col1: "val1",col2:val2 } ) but i know col1