Xpath: Selecting ALL instead of ANY. - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Xpath: Selecting ALL instead of ANY.

Last post 08-19-2011 11:26 AM by Lockdown. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-19-2011 11:12 AM

    Xpath: Selecting ALL instead of ANY.

    I am trying to figure out a way to hide a section, depending on if ALL instances of a repeating section are not equal to a particular string.

    Some psuedocode:

    If (ALL instances of repeating section\@attribute !="String")

    Hide Control

    I tried this but i realized it obviously wont work because if any instance is not equal to the string it will be hidden. I want to make sure that if any instance IS equal to the string then show the section.

    Group/Field[ *]/@attribute !="String"

  • 08-19-2011 11:23 AM In reply to

    Re: Xpath: Selecting ALL instead of ANY.

    Hello Lockdown,

    In the conditional formatting dialog, select "Select a field or group..." from the left dropdown and locate that attribute.  There should be a dropdown in the field selection dialog that allows to you select "All occurrences of attribute"

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 08-19-2011 11:26 AM In reply to

    Re: Xpath: Selecting ALL instead of ANY.

    Thanks, I appreciate it. Somehow I never even knew that dropdown was there haha. 

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.