Looping through a repeating section with rules - InfoPath Dev
in

InfoPath Dev

Looping through a repeating section with rules

Last post 11-28-2008 04:21 AM by swathip. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-28-2008 03:19 AM

    • keelyh
    • Not Ranked
    • Joined on 09-12-2006
    • Posts 3

    Looping through a repeating section with rules

    Hi,

    I have two repeating sectons on my form. Before submitting the form I need to be able to check if either repeating section contains a specifc value in one of it's repeating fields.

    I need to be able to do this with rules, not code.

    Is this possible?

    Thanks 

     

     

    Filed under:
  • 11-28-2008 04:21 AM In reply to

    Re: Looping through a repeating section with rules

    Hi,

    You can check this using a rule. By using the following xpath you can check this.

    count(/my:myFields/my:group1/my:group2[my:field2 = "a"]) >= 1 or count (/my:myFields/my:group3/my:group4[my:field4 = "a"]) >= 1

    Put this expression in the set condition on the button rule.

    Then add action what ever you want.

     

    Here  /my:myFields/my:group1/my:group2 -> first repeating section xpath.

    my:field2 -> field ion the first repeating section

    /my:myFields/my:group3/my:group4 -> second repeating section xpath.

    My:field4 -> field in the second repeating section.

    "a" -> value with which you want to compare.

    Swathip
    www.ggktech.com
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.