Making an associative array for columns and row values
I've been looking at the grid for just a day now, and i'm wondering if the indices of the columns/ rows can be replaced with a custom key.
Presently the columns are stored with numerical indices i,e, 0,1,2..etc.
Is there a way for me to replace these indices with a custom value, so i can have something like this..
If this possible, i then should be able to get a column value like this -
var value = obj.getColumnText( index);, where index is say "key1".
Immediately after this i set the column text by passing another array, like this -
and then set a XML table as a data model to the grid object..
I have valid XML, but when i include the
obj.setColumnValues(valueArray); , the indices change to the key array i provide alright, but the text does't get set. All column headers show as 'undefined' and the grid doesn't get populated.
The moment i remove 'obj.setColumnValues(valueArray);'. The data is rendered fine and the column text shows up.
Can u please tell me what i'm doing wrong?
I see that the source code is separated in different folders. Do i just copy in all the js files as is (in separate folders and all), into my war file for it towork ? :(
If you want to use source files instead of runtime you have to copy all subfolders.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.