cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic page break in smartforms

Former Member
0 Kudos

Hello Friends,

I m using two loops to print the header and item data , now i want to invoke page break when both the loops has printed 6 records.

if both the loops contains more than 6 records thn the reamining records should be printed in the nextpage.

Also secifiy at which point i should check the condition.

pls let me knw hos it is possibe??

Regards,

Sunny

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi sunny,

once one record is printed write code lines to increase the counter after that check whether dat counter is greater than 6

once the counter is increased till 6 and den after both loops put a comand node it will go to commnad where in give the next page and on condition dat counter is greater than 6.

hope this helps

regards,

prashanti

Answers (4)

Answers (4)

Former Member
0 Kudos

tnks

Former Member
0 Kudos

Hi Sunny,

In the main window:

Declare these two field in the global definitions.

Create the command node in the conditions tab

give the ex sno = 6.

After than create the text node for the records

as per your requirement.

Create the program lines.

If sno = 6.
sno = 1.
next_page = next_page + 1.
endif.

Regards,

Sravanthi

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

Using Program lines node in that loops you can increment one Counter Variable by1 after displaying every line item. When Counter value is Greater than 6 then Set a Flang Value to 1 which initial values is 0. Then Put a Command node by giving next Page with its condition FLAG = 1.