How to count a field with multiple value? - InfoPath Dev
in

InfoPath Dev

How to count a field with multiple value?

Last post 02-28-2012 08:47 AM by TSKoo. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-28-2012 08:21 AM

    • TSKoo
    • Not Ranked
    • Joined on 02-28-2012
    • Posts 3

    How to count a field with multiple value?

    I need to count a field where the field has multiple values. For example. the value in field paymentstatus.code can be  'ISSUED' or 'FORMATTED'.  Can you tell me the Infopath syntax on OR?  I tried the below statements but it did not work.

    <?count(PaymentStatus[Code='ISSUED'||Code='FORMATTED'])?>

  • 02-28-2012 08:41 AM In reply to

    Re: How to count a field with multiple value?

    I think what you need is this:

       count(PaymentStatus[Code = 'ISSUED' or Code = 'FORMATTED'])

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 02-28-2012 08:47 AM In reply to

    • TSKoo
    • Not Ranked
    • Joined on 02-28-2012
    • Posts 3

    Re: How to count a field with multiple value?

    Jimmy,

    It WORKED!!! Thank you so much for the help.  Have a wonderfule day!

    Teresa

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