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>
-------------------------------
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,