flex actionscript Datagridcolumn array

Posted by Jad on Stack Overflow See other posts from Stack Overflow or by Jad
Published on 2010-03-12T10:02:43Z Indexed on 2010/03/12 10:07 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|

Hi, We have an AIR app and using a datagrid. We want to store the dataGrid.columns array in mySQL DB through PHP. This is needed because the user can customise the column headers of the datagrid and his preference needs to be stored and shown to him on his next login. Using HTTPService, we tried sending the dataGrid.columns array as a string, as follows,

var ht:HTTPService = new HTTPService();

ht.url = Config.getServerURL();

ht.method = URLRequestMethod.POST;

ht.resultFormat = "text";

ht.request["action"] = "updateGrid";

ht.request["headercolumns"] = colsArray.toString();


The data is stord as comma separated array string in DB. When we retrieve it back, cannot seem to cast it back to the DatagridColumns and assign it.

Please let me know.

Regards Jada.

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript