3.2.0

How to get cell text (with an XML datasource)

First off, an excellent piece of work. Congrats!

I would like to know how would one be able to get a cell text/value when the datasource is an xml dataset. What I am trying to do is for all the selected rows, I am able to get the index or values. But I need to get the value available in the first or second column of selected rows.

If its an array, then while setting properties, I can use obj.setProperty("data/text", function(i, j) {...}); How do I do an equivalent of this if the data model is data. [obj.setDataModel(data)]. Please explain.

Thanks,
knoll
June 3,
When you attach the external data model using setDataModel - the getDataProperty calls are redirected to your external data model object. So you can continue using
var text = obj.getDataProperty("text", i, j);

In case of built-in data model (JS array) it will result in a call to obj.getDataText(i, j) and in case of external model - data.getText(i, j).
Alex (ActiveWidgets)
June 3,
Thank you.
knoll
June 3,

This topic is archived.

See also:


Back to support forum