Hi,
I'm not sure I understand your structure you seem to have an inner repeating subform then a repeating table, that would be three levels. Either way you will need to reference the instanceManager count property so the calculation script knows to run when the value changes, so something like;
var sumD = 0;
var tableARows = this.resolveNodes("TableA.Row1[*]")
for (var i = 0; i < TableA._Row1.count; i++) {
var tableARow = tableARows.item(i);
var table1Rows = tableARow.resolveNodes("Subform2.Table1.Row1[*]");
for (var j = 0; j < tableARow.resolveNode("Subform2.Table1")._Row1.count; j++) {
table1Row = table1Rows.item(j);
if (table1Row.CLC.rawValue == 0) {
sumD += table1Row.MBRS.rawValue * table1Row.NON.rawValue;
}
}
}
sumD;
Regards
Bruce