W
Will
I often want to validate that a certain attribute or child element is
unique across repeating groups. Based on information from previous
threads, I was able to accomplish this by creating a validation
condition on the uniqueField control:
". = ../preceding-sibling::groupName/uniqueField or
. = ../following-sibling::groupName/uniqueField"
This works okay. However, I run across the following problem:
I set uniqueField to "01" on row A. Then I set uniqueField to "01" on
row B. This triggers the validation error on uniqueField of row B.
Now if I go back and change uniqueField to "02" on row A, the error
(red outline) on row B remains. To remove the error, I must change
uniqueField on row B to something else, then change it back to "01" to
retrigger the validation.
Does anyone know a way to enforce this validation in a more global
manner (without adding too much complexity)?
Thanks,
Will
unique across repeating groups. Based on information from previous
threads, I was able to accomplish this by creating a validation
condition on the uniqueField control:
". = ../preceding-sibling::groupName/uniqueField or
. = ../following-sibling::groupName/uniqueField"
This works okay. However, I run across the following problem:
I set uniqueField to "01" on row A. Then I set uniqueField to "01" on
row B. This triggers the validation error on uniqueField of row B.
Now if I go back and change uniqueField to "02" on row A, the error
(red outline) on row B remains. To remove the error, I must change
uniqueField on row B to something else, then change it back to "01" to
retrigger the validation.
Does anyone know a way to enforce this validation in a more global
manner (without adding too much complexity)?
Thanks,
Will