I am trying to add a constraint to a field based on the value from another field from a previous repeat. I have more or less figured this out using the position(..) function coupled with the indexed-repeat() function. The problem is that it doesn't work for the first record (where previous value = null), unless I ask the user to enter a 0 for the first record. But ultimately I don't want that field to be changed intentionally in the case of the first record or unintentionally for subsequent records (I'll eventually figure out how to have that value displayed but not alterable, which is another issue altogether).
I tried to create a component of the constraint using ISNULL (e.g. ${start_gap}<=9980 and (${start_gap}> ${prev_end_gap} or ISNULL(${prev_end_gap}))). But that did not solve the problem.
Help with this is much appreciated.
John Ragosta