Validation not working in Repeating section

N

Nick

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?
 
A

Andrew Watt [MVP - InfoPath]

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?

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
 
N

Nick

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.


Andrew Watt said:
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?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top