I have a repeating section where one of the fields has a validation on it
that is an expression like this:
count(my:*[my:Type="A"]/my:RepeatingField) > 20
the validation works, however if you enter in 2 sections, and put 15 in the
first, then put 10 in the second, only the second shows an error. Then if I
change the first to 2 (now less than 20), nothing happens. then if I go into
the second and just retype 15, then the error goes away (as it should have
before). Is this a bug in infopath? Any suggested workarounds? How can I
force a rule / validation to be checked?
Andrew Watt [MVP - InfoPath] - 24 Mar 2005 20:00 GMT
>I have a repeating section where one of the fields has a validation on it
>that is an expression like this:
[quoted text clipped - 7 lines]
>before). Is this a bug in infopath? Any suggested workarounds? How can I
>force a rule / validation to be checked?
Nick,
Can you try another way of explaining precisely what it is that you
are trying to do?
I find that it isn't obvious to me.
Andrew Watt
MVP - InfoPath
Nick - 24 Mar 2005 20:29 GMT
I think i meant to say the expression is:
sum(my:*[my:Type="A"]/my:RepeatingField) > 20
Bascially, a specific control in the repeating section must not add up to be
more than 20. When this happens, the validation only fires on the control
that changed. The other controls do not update the validation wether its
positive or negative.
> >I have a repeating section where one of the fields has a validation on it
> >that is an expression like this:
[quoted text clipped - 17 lines]
> Andrew Watt
> MVP - InfoPath