3.2.0

Help: Problem turing column data into a link

I have an XML data source,

Below is just part of the code. The grid itself works and the first line is the general document.write(obj). My problem is that the next script that runs is supposed to massage the data in Column 13 and turn it into a link. But, the data isn't loaded at that point (alerts give me a rowcount of 0).
I should note, Column 13 is set as a string type using the "table.setFormats"

If anyone can tell me what I'm doing wrong and how to change Column 13 to be links, I'd be much appreciated. It would not only solve this problem, but resolve a number of problems I'm having.

Thanks
------------------------------
document.write(obj);
</script>

<!-- Set Link Column -->
<script>
var i, cellvalue, max = obj.getRowCount();
for (i=0; i<max+1; i++){
cellvalue = obj.getCellValue(13,i);
obj.setCellTemplate(new AW.Templates.Link, 13, i);
obj.setCellText("http://www.domain.com/"+cellvalue, 13,i);
}
obj.refresh()
</script>
-------------------------------
Carl
February 20,
There is a very simple example of this at:
http://friendsofaw.com/nuke/modules.php?name=Demos

BAsic K Demo #2,

Not xml data example but should be enough ....

Alf
February 20,

This topic is archived.

See also:


Back to support forum