cancel
Showing results for 
Search instead for 
Did you mean: 

smart forms

Former Member
0 Kudos

hi fnds,,

now i am doing some work on smartforms..

i had one problem..

i wnt ot display a table with page totals and grand total at end..

every thing is comming right ..exp... page totals..

in page total ..the ampunt in page total is geting wrong..

it also includes the nest page first record also..so it is giving wrong totals..

i am using global parameters for that and for displaying i am using table footer..

can any one help me to shoot it out..

Tnanks and Regards,

Sunil///

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sunil,

the next record also gets included as the data is there in the header. so declare a variable,say var1 as global parameter and just before displaying in the footer take the itab_field-value into this variable. then subtract this variable from the variable used for the total,say v_total. make sure u assign var1 to v_total in the header.now each time before printing in the footer the next page value is subtracted and is added in the header part for the next page. i tried it and it is working fine

former_member221770
Contributor
0 Kudos

Sunil,

Going to assume you are using a Table Node. Try using inserting a Program Lines Node into your Table Node. Within this Program Lines Node, accumulate a running total into a Global Variable. Display this Global Variable via a Text Node in the Table FOOTER event.

Hope this helps.

Cheers,

Pat.