Total of repeating table calculated value - InfoPath Dev
in

InfoPath Dev

Total of repeating table calculated value

Last post 06-16-2014 01:54 AM by marculos. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-10-2014 01:23 PM

    Total of repeating table calculated value

     Hi, sorry noob question ..

     

    I have a repeating table

     Quantity           Price            Total (Calculated Value)

    10                      0.50             5.00
    1                        0.25             5.25

    How do I get a sum of the total of calculated values as if I use Sum(calculated value) I get 0.

    An easy one for you InfoPath devs probably !

    Appreciate any help :) 

     

  • 06-10-2014 10:12 PM In reply to

    Re: Total of repeating table calculated value

    Hi Marculos,

    Kindly try this formula using and eval approach:

    sum(eval(group, "my:Quantity * my:Price"))

    where group is the repeating group/section.

    More information can be found here.

    Regards, 

    Don Stephen Lambatin / Support Engineer
    Qdabra Software
  • 06-11-2014 01:24 AM In reply to

    Re: Total of repeating table calculated value

     Thanks for the help .. I get an error with this formula, guess another noob issue, can anyone assist ?

     

    Expected value type: ,

    Actual value: ..
    sum(eval(my:-->..<--/my:OrderDetails/my:OrderDetailsRepeating. "my:../my:OrderDetails/my:OrderDetailsRepeating/my:decPrice * my:../my:OrderDetails/my:OrderDetailsRepeating/my:intQuantity") 

  • 06-11-2014 02:24 PM In reply to

    Re: Total of repeating table calculated value

    I'd guess maybe this, but be sure to use the field picker to select the piece I have in bold below.

    sum(eval(my:OrderDetails/my:OrderDetailsRepeating, "my:decPrice * my:intQuantity") 

    Hilary Stoupa

  • 06-16-2014 01:54 AM In reply to

    Re: Total of repeating table calculated value

     many thanks Hilary, this has done the trick !

    Thanks Again ! 

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