repeating tables & count - InfoPath Dev
in

InfoPath Dev

repeating tables & count

Last post 04-23-2009 10:12 PM by swathip. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-23-2009 02:22 AM

    repeating tables & count

    Hi ! here's my problem : i use 4 repeating tables for my subscription form where people have the choice to add members Then I display the names in a column (i use the "merge" function) but i also need to know the amount of people so i add a new column & use the "count" function BUT some repeating tables are optional but my count function still return a "1" even if the first field is empty, it's logic i know but i want a "0" or nothing... Can somebody help me with this case ?
    Filed under:
  • 04-23-2009 10:12 PM In reply to

    Re: repeating tables & count

    Hi,

    Use the following expression to count the number members.

    count(/my:myFields/my:group1/my:group2[my:field2 != ""])

     

    Just add a filter to count only the fields which are not empty.

    Here /my:myFields/my:group1/my:group2 is a repeating table xpath.

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