Auto-populating fields with loop script
I am having some problems trying to auto-populate fields using a script.
I have a two tables Cases and Calculation. I am using a local variable to as a counter. Then I use the counter to compare it's current value versus values in a field in Cases. Values are numerical.
Set Variable [$count; Value:0]
If[$$count = Cases::_LocationID]
Set Field [Calculation::_LocationID = Cases::_LocationID]
Goto Record [Next; Exit after last]
Exit Loop If [$count = $count + 1]
Unfortunately, loops once and quits. It populates only 1 field