cancel
Showing results for 
Search instead for 
Did you mean: 

How to get subtotal in the below situation ??

Former Member
0 Kudos

Hi all,

I am working on a smartforms project.In main window, it has a LOOP with coloum A in main area of TABLE element. And the TABLE element is in a FOLDER using page protection.

I wanna get the subtotal for each page from coloum A.

For it,I defined a variable z_subtotal.Then in the LOOP, add statement "z_subtotal = z_subtotal+coloum A".And clear it after outputing it in footer of TABLE element.But the subtotal is not correct and total is correct.

Who can give me some advice??

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Re: How to add page protection in LOOP??

????????

Why you modify the queston to another?????????

Former Member
0 Kudos

Sorry,because your answer is not fit to my question.

Former Member
0 Kudos

Stephen,

have I understood you correctly.

You need to print the subtotal of column A on every page.

Print the subtotal outside the Main window, in a window that executes after Main

However this Subtotal will keep incrementing .

So if u want the individual subtotal for each page, Refresh the subtotal after printing it

Former Member
0 Kudos

Thans for you understand me.

I add the clear in the footer of main window.But it always includes a value that is displayed on the next page.That's the problem.

Former Member
0 Kudos

Do u have the total print in the main window

or another window.

u have to print and refresh the subtotal in a SEPERATE WINDOW below MAIN

not in the table footer in main

Former Member
0 Kudos

create a folder

put the nodes which you want to page protection to this folder

then click folder----output options- check [page protection]