6 Replies Latest reply on Nov 20, 2013 3:42 AM by Priyasagi

    Help in calculation code

    Medo Hassan

      Hi,

      for example i have this table and i want to get the total discount

       

      Quantity

      Discount

      10

      2 "per unit"
      102
      102

      so it well be 10*2   for first row +

                        10*2    for second row +

                        10*2    for third row

      so the total discount well be 60

       

      now i have a text item in a form and wanna to get the total discount

      so i go to property palette and make it's (calculation mode) = "summary"

      and wrote this code in (formula filed)

      sum(quantity * discount)

      and it doesn't work 

       

      so i'll be grateful if any one could help me in this

      Thanks