cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict the no. of records to be displayed on a page in a Smartform

Former Member
0 Kudos

Hi,

How to restrict the no. of records to be displayed on a page in a Smartform?

For eg. Only 10 records are to be displayed on the first page. Once it goes to 11th record it should get displayed in the next page.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

create a counter and increment it at each loop pass

You can write this increment variable code in a program lines(create->flowlogic->program lines) inside the loop.

Also inside the loop and command(create->flowlogic->command) for a new page break with the condition(last tab) incremnet_variable = 11

reward points if helpful

Answers (1)

Answers (1)

valter_oliveira
Active Contributor
0 Kudos

Hello.

For that you can do like this:

1 - create a counter (i.e. variable type i, that must be initializes in the begining).

2 - into your table/loop in MAIN window, in the begining of line, create a logic, adding one to this variable

3 - create a condition inside the table, like IF counter EQ 11, insert a command page break.

Post here if you have doubts about any of this points.

Regards.

Valter Oliveira.

Former Member
0 Kudos

Hi,

It would be really helpful if you could explain the steps to be followed in detail for restricting the records.

thanks.