3.2.0

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
December 16,
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)
December 16,
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
December 16,
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)
December 16,
it works perfect!

what is the difference between data/text and data/value btw?
Hartlijn
December 19,
For strings there is no difference. For dates and numbers data/text should contain formatted text while data/value actual numeric value.
Alex (ActiveWidgets)
December 19,

This topic is archived.

See also:


Back to support forum