rahulmca1@gmail.com
10 Aug 2007, 7:17 AM
Hi,
I need to create a Ext.data.Record from the following xml to update a row in an existing grid.
<row>
<column id="1" value="one" />
<column id="2" value="two" />
<column id="3" value="three" />
</row>
The "<row>" node represents a record, the "id" the column id and the "name" the value for that column.
The Record constructor expects data in form of "An associative Array of data values keyed by the field name."
In my case however these keys are dynamic and need to be extracted from the xml (the "id" attribute), so how do i create an Object to pass to the Record constructor.
Thanks a lot.
I need to create a Ext.data.Record from the following xml to update a row in an existing grid.
<row>
<column id="1" value="one" />
<column id="2" value="two" />
<column id="3" value="three" />
</row>
The "<row>" node represents a record, the "id" the column id and the "name" the value for that column.
The Record constructor expects data in form of "An associative Array of data values keyed by the field name."
In my case however these keys are dynamic and need to be extracted from the xml (the "id" attribute), so how do i create an Object to pass to the Record constructor.
Thanks a lot.