Application Development 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: 

different table in different page in smartform

0 Kudos
408

Hi Everyone,

I had one Smartform requirement where I need to print a few details on the first page which have Main Window, the Second page has one internal table. Now my requirement is to display 3 internal table data in 3 different pages, where all internal table data would be the different but same table type, based on some condition.

says: one input parameter "no_of_table", if it is 3 then 3 table in 3 pages, (along with the first page) so total pages = 4

if it is 2 then 2 table in 2 pages,(along with the first page) so total pages = 3

if it is 1 then 1 table in 1 page,(along with the first page). so total pages = 2

I need your help.

4 REPLIES 4

venkateswaran_k
Active Contributor
284

Try add Page Break after end of each Table print.

Insert the page break using Command Node

This may reach your requirement'

0 Kudos
284

could you elaborate bit....

284
deepak23 To add a "Command" node, use context menu Create > Flow Logic > Command

former_member1716
Active Contributor
0 Kudos
284

deepak23,

Based on the Data you have collected in internal tables you would be knowing up front how many pages you need to be displayed.

Now each page should be added with a command Node to introduce Page break. This is basically a condition which will decide if the page should be printed. You can induce this condition based on several parameters like the internal table itself or a local Variable with the count of internal table with value. The logic can be anything of your own which is in sync with the business requirement.

To Know more about the Page break there are several resources available. You can use the below link to start up.

PAGE BREAK

Regards!