ks_ks_
6th May 2009, 09:38
Hi,

I want to print result of after.field in footer.

How can I do that?

I have lets say 10 fields in details for which 3,3 and 4 in each after.field. In after.field I want to print the total. Now I want it to be printed only once at the bottom of the report.

KS

Marioth
6th May 2009, 12:32
Hi,

declare 10 new variables within you report script save them within the after.layout from your after.field and print them within the footer.

Regards,

Mario

ks_ks_
6th May 2009, 12:37
Hi,

declare 10 new variables within you report script save them within the after.layout from your after.field and print them within the footer.

Regards,

Mario

Hi Marioth,

Thanks for your reply. But this 10 was just an example this could be 100 or sometimes 1000 also. So this wont be the good practice. Also I need to print the total of each grouped record based on detail in the footer/after.report.

Could you please help me in doing this?

Marioth
6th May 2009, 13:06
In the after.field you can declare the fields as a total of that group and save it in a variable. If you have multiple records to save declare the variable as a array and evertime when you hit the after.layout increase the array with 1.

Eg.

declaration:
domain tcmcs.long save.array(100)
domain long i

after.layout:
save.array(i) = your.total
i = i + 1