Assumptions:
1. You want to look at the value of a specific field in each of the repeating table rows to determine if it has a value. If it does, then add that value to the total variable.
2. That rowHUDataTBL is a repeating row in the table.
I would use the following:
var total = 0;
var rowCount = frmHUTable.tblHandlingUnits.rowHUDataTBL.instanceManager.count;
for (i=0; i<=rowCount; i++)
{
var rowNode = frmHUTable.tblHandlingUnits.resolveNode("rowHUDataTBL[" + i + "]").Name of the field you want to check for value.rawValue; Example: colGrossVolume.rawValue;
if (rowNode != null)
{
total = total + rowNode;
}
}
You may need to input the full path to the repeating table row starting from the top: xfa.form.root node name. ... all the way down to the rowHUDataTBL.
Also use app.alert() or console.println() to debug and show the variable values. You will have to look up the syntax and how to get the Javascript debugger to be active in Designer for the console.println().