How to change content of a specific column
Hi
I searched the forum for this but was not successful in finding an answer. I want to change the content of a specific column before displaying to the user.
For example, column 7 has numbers but if the number is below 0, I want to change it to display 0 and not -1 or -10 etc..
here is sample code but this doesn't work....any ideas?
obj.getColumnTemplate(7).getContent("value", changeNum);
function change()
{
var value = this.getItemProperty("value");
if (value < 0)
return 0;
else
return value;
}
I searched the forum for this but was not successful in finding an answer. I want to change the content of a specific column before displaying to the user.
For example, column 7 has numbers but if the number is below 0, I want to change it to display 0 and not -1 or -10 etc..
here is sample code but this doesn't work....any ideas?
obj.getColumnTemplate(7).getContent("value", changeNum);
function change()
{
var value = this.getItemProperty("value");
if (value < 0)
return 0;
else
return value;
}
Jason
September 3,