:: Forum >>
how to echo a value of a cell
How can I obtain the following with this great tool:
referring to the simple example using XML, I'd like to say:
the value of cell [1][3] (XY) =
totalrows=
totalcolumns=
I am sure this can be done with a simple function, but I cannot find it.
Hartlijn
Tuesday, December 16, 2003
Maybe you are looking for this:
alert(obj.getProperty("data/text", 1, 3));
alert(obj.getProperty("data/value", 1, 3));
alert(obj.getProperty("row/count"));
alert(obj.getProperty("column/count"));
Alex
Alex (ActiveWidgets)
Tuesday, December 16, 2003
it looked like it goes were I dream it would go, but the results are:
null
null
0
5
(using your own example xml-simple.htm, without any other changes)
Hartlijn
Tuesday, December 16, 2003
That's correct. XML Table loads data asynchronously, which means - if you call it immediately after initialization - table has 0 row count and no data.
If you try the same code after some delay or in event/action handler - it should return proper table values.
Alex
Alex (ActiveWidgets)
Tuesday, December 16, 2003
it works perfect!
what is the difference between data/text and data/value btw?
Hartlijn
Friday, December 19, 2003
For strings there is no difference. For dates and numbers data/text should contain formatted text while data/value actual numeric value.
Alex (ActiveWidgets)
Friday, December 19, 2003
This topic is archived.
Back to support forum
Forum search