Hey Experts,
I have a dynamic table with 1 row which repeats. I want to change the value of a field in this row so if it is "On" make it show "Enabled".
I have written the following code and I put it in the initialization of the table but it doesn't work.
Can anyone help? What am I doing wrong? Where should the code go?
var rows = FormTradeReceivablesPayablesAccountStatementNotification.bdyPage1.tblOpenItems.tblTable1.resolveNodes(Row1[*]);
var row = rows.item(1);
for (var i = 0; i < rows.length; i++) {
var row = rows.item(i);
var dunning = row.DunningOn.rawValue;
if (dunning == "On")
{
row.DunningOn.rawValue = "Enabled";
}else{
row.DunningOn.rawValue = "Disabled";
}
}
Any pointers would be greatly appreciated!
Thanks
Christine