Fo2sHako
20th July 2010, 15:14
when i was trying 2 edit a layout of a report i faced that :
the Detail1 layout is iterative
and the layout ( whatever name ) after it sum the values of the iteration
i want 2 print out just the summation of the iteration of detail1.layout
but when i tried 2 hide the layout line or assign the value of line.printed = true
the value of summation became 0
any one can help plz ???

mark_h
20th July 2010, 22:42
See hitesh answer in this thread (http://www.baanboard.com/baanboard/showthread.php?t=58107&highlight=report+totals).

günther
22nd July 2010, 11:24
As last resort you can always calculate the sum of your own.


declaration:
domain tcmcs.double my.total.1 | total per group
domain tcmcs.double my.total.2 | total per report

before.report:
my.total.1 = 0.0
my.total.2 = 0.0

before.<group>.1:
before.layout:
my.total.1 = 0.0
lattr.pint = false | NOTE: Layout Condtion = 1 (always true!)

detail.1:
before.layout:
my.total.1 = my.total.1 + <value>
my.total.2 = my.total.2 + <value>

|after.<group>.1: in that layout you should print my.total.1

|after.report: in that layout you should print my.total.2