XML & Grid questions...
I see, that AW.UI.Table class is capable to load, parse and display the data within the AW.UI.Grid class. It seems to allow dynamical change of XML source to set new data for the grid (AJAX way)...
I am capable of creating PHP script to generate XML source... but when parsing the data...
is there possibility to set the atributes of Table object by node properities ?
<root columns="5" rows="3000"> <row> <cell></cell> . . . <cell></cell> </row> ............ </root>
Some clue needed realy quickly cause other way my DeadLine forces me to use PHP cenerated JS to patch the grid from within the hidden <Iframe>
Tnanx a lot for help....
You can do something like -
var node = table.getXML().documentElement.childNodes;
var text = AW.ie ? node.text : node.textContent;
It might be childNodes or childNodes depending whether you have anything between <xml> and <updtime>. Also IE and FF treat whitespace differently, so I would still define a column with XPath to avoid all this (XPath = "/updtime" or maybe "//updtime" to be sure :-)
So, u can get the node text and ...
var countRows = Number(nodeValue); // nodevalue hav ur count line string obj.setRowCount(countRows); // done
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.