Avatar

Level 10

Hi,

If you have script in row 6 of the schedule. which is looking for invoice 6, then the following should work in the calculate event.

if (_Page1.count >= 6)

{

     this.rawValue = xfa.resolveNode("Page1[5].Header.Company").rawValue;

}

Note that .count is not zero-based, so "6" will be the sixth invoice. The instance number is zero-based, so this is why we use "5".

Lastly, the underscore before the repeating object is shorthand for instanceManager.

Hope that helps,

Niall

Assure Dynamics