Expression Text by Node presence? - InfoPath Dev
in

InfoPath Dev

Expression Text by Node presence?

Last post 01-07-2010 09:48 PM by glogan. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-07-2010 08:01 PM

    • glogan
    • Not Ranked
    • Joined on 11-24-2009
    • Posts 6

    Expression Text by Node presence?

    I want to put a "Yes" in a grid (repeating table) if a child node exists.

    If I use:   count(PIBRequest) > 0       ... as the datasource xpath expression for the "Expression Box". ("PIBRequest" is the name of the child node.)  The expression displays "True" or "False" on the screen.  I want to display "Yes" or "No".

    Is there a way I can display "Yes" if the node is present, rather than "true"?

    Thanks - Gary.

  • 01-07-2010 08:05 PM In reply to

    Re: Expression Text by Node presence?

     Create two expression boxes with the static text Yes and No, and show or hide them accordingly.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 01-07-2010 09:48 PM In reply to

    • glogan
    • Not Ranked
    • Joined on 11-24-2009
    • Posts 6

    Re: Expression Text by Node presence?

    Jimmy:

     Create two expression boxes with the static text Yes and No, and show or hide them accordingly.

    Thanks.  It works beautifully.

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