Repeating Table Validation problem

S

Steve

Hi,

I have a repeating table that comprises of...

Contact_Type
Contact_Details
Contact_Primary

i would like to cause a validation error if the contact primary field
is entered more than once i have tried using validation rule with an
expression is

count(my:ContactDetailsGroup/my:Details/my:primary[. = "true"]) > 1

but this doesnt seem to help much.

any assistance given will be most appreciated.

Steve
 
P

Paresh

Hi,

I have a repeating table that comprises of...

Contact_Type
Contact_Details
Contact_Primary

i would like to cause a validation error if the contact primary field
is entered more than once i have tried using validation rule with an
expression is

count(my:ContactDetailsGroup/my:Details/my:primary[. = "true"]) > 1

but this doesnt seem to help much.

any assistance given will be most appreciated.

Steve

Hi Steve,

Take a look at the following link:
http://blogs.msdn.com/infopath/archive/2006/08/10/694530.aspx

HTH

Best Regards,
Paresh
http://blogs.msdn.com/infopath/archive/2006/08/10/694530.aspx
 
S

Swathi

Hi,

Use the following expression on the contact_primary field
.. = ../preceding-sibling::my:group4/my:field4 or . =
.../following-sibling::my:group4/my:field4 and . != ""

Here my:group4 -> repeating table.
my:field4 -> contact_primary field.

I have tested this and it is working.
Hope this will also work for you.
 
S

Steve

Hi,

Use the following expression on the contact_primary field
. = ../preceding-sibling::my:group4/my:field4 or . =
../following-sibling::my:group4/my:field4 and . != ""

Here my:group4 -> repeating table.
my:field4 -> contact_primary field.

I have tested this and it is working.
Hope this will also work for you.

--
Swathi Porandlahttp://www.ggktech.com

Steve said:
I have a repeating table that comprises of...

i would like to cause a validation error if the contact primary field
is entered more than once i have tried using validation rule with an
expression is
count(my:ContactDetailsGroup/my:Details/my:primary[. = "true"]) > 1
but this doesnt seem to help much.
any assistance given will be most appreciated.

Thanks to you both, sometimes a nod in the right direction is just
enough!

Steve
 

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