Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reg: Smartforms

Former Member
0 Likes
592

Hi all,

I have the requirement like,

I need to print the sub-total in each page for an invoice if my lineitems are getting printed more than one page...

i have used the table in the main window...

i want to know whether any events are present to calculate and print the sub-total in each page after the line items are printed...

The event should be triggered for end of each page then only i can print the sub-totals for each page...

answers will be rewarded

thanks and regards

vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
574

hi,

refer to this link..

5 REPLIES 5
Read only

Former Member
0 Likes
575

hi,

refer to this link..

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
574

Hello Vijay,

In the MAIN window you must be using a Table to display the line items.

The calculation for the page-total values can be done in the "Calculation" tab.

In the footer of the table, there is a block called "Print Time". In that check both the check-boxes: 'at Page Break' & 'at End of Table'. In the footer, you can use the variable from the "Calculation" tab to get the result.

Hope this helps.

BR,

Suhas

Read only

Former Member
0 Likes
574

In the calculations tab of table use a global variable as v_total and print this .

Give the operation as total, field name as total field target field as v_total time as after loop

and then print it where u want

кu03B1ятu03B9к

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
574

Hi,

As you have used table in main window to print the records, and you want to print a sum of a field at end of page.

Use this approcah:-

Take a variable to store the sum of a field to be displayed in GLOBAL DEFINITIONS.

Now, in the FOOTER of the table in main window --> create a line with one column -- > under the cell create a loop statement and in the DATA tab specify the internal table and work area and in the CALCULATION tab give the operation as TOTAL, field name as <work_area>-<field_name>, target field name to store the sum into a variable declared in GLOBAL DEFINITIONS and finally the TIME as AFTER LOOP* as you wan to print the sum for all field value entries.

Now insert a text element after the loop statement, and not under the loop statement (remember this thing).

This will print the sum of the specified field.

Hope this solves your problem.

Thanks & Regards,

Tarun Gambhir

Read only

Former Member
0 Likes
574

hi all,

Thanks for your reply..

i found the solution

regards

vijay