Do it like this...
Inside the loop,use program lines. Declare input variable as field name to be summed, declare output variable which contains the summation value.
now for displaying the total after all line items or tale lines,
Do a doubleclick on table node you will see the tabs goto EVENTS tab.
Choose EVENTS and set the flag of FOOTER checkbox.
Now a FOOTER node is opened into the TABLE NODE (at the end of the table) and so you can insert a text for the total and value that is calculated in program lines.
Close the thread once your question is answered.
Regards,
SaiRam
Hi,
Use calculations tab in table for calculations and then use text element footer to display the total.
Hi,
In the node where u r printing the value , u will be printing each value in the textelement. so Before that text elelment u create a program line.
u take a variable and assign the variable as zero .
in the program lines u put the code as
variable = variable + (text-value).
ex:-itab-menge.( uwant to make sum of menge).
var type menge. = 0.(This u do in global def.).
in the program lines.
var = var + itab-menge.
after the loop.
var will be sum of the all .
Assign points if useful.
Add a comment