If you want to parse the column names on the server, you could write
a function to concatenate the column names and send them as a group.
Instead of calling reqTodos.send call sendColumnNames.
code:
[Bindable]
public var columnHeaders:String;
public function sendColumnNames():void
{
var columns:Array = dgTodo.columns;
var headers:String = "";
for each (var c:DataGridColumn in columns) {
headers += c.headerText + "\t";
}
columnHeaders = headers;
reqTodos.send(alldone);
}
model:
<mx:Model id="alldone">
<root>
<action>alldone</action>
<alldone>{columnHeaders}</alldone>
</root>
</mx:Model>
On Aug 21, 2006, at 4:24 PM, kwdowicz wrote:
> How to send DataGrids Columns as POST variable in case this method ?:
>
> dgTodo is instance of DataGrid
> reqTodos is instance of HTTPService
>
> <mx:Model id="alldone">
> <root>
> <action>alldone</action>
> <alldone>{dgTodo.columns}</alldone>
> </root>
> </mx:Model>
>
> reqTodos.send(alldone);
>
> in my $_POST variables i have only names of Columns objects .
>
> Please help, i'm new to Flex2 and ActionScript
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/