HI,
I am also looking for something like this solution.I had a text box where user can enter data.That textbox is in repeating table.I want to make sure user have not typed same data in different tables.
Xpath for the field to validate:/my:Main/my:Titles/my:Details/my:IMNDetails/my:CRFH_IMN1
Xpath for the group:/my:Main/my:Titles/my:Details/my:IMNDetails
Now can u please help me where can i set the data validation said in the below lines.ie;do i need to set that for the field's(textbox) data validation ?
---------------------------------------------------------------------------------------------------------------------
You can avoid the duplicate values by putting the following expressions as data validation.
count(/my:myFields/my:group1/my:group2[my:field2 != ""]) > 1 and (. = ../preceding-sibling::my:group2/my:field2 or . = ../following-sibling::my:group2/my:field2)
and add the message to display the dialogue box.
Here /my:myFields/my:group1/my:group2 -> repeating group xpath
My:field2 -> field in repeating table
----------------------------------------------------------------------------------------------------------------------