2020 Mar 12 8:02 AM
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.
2020 Mar 12 8:51 AM
Try add Page Break after end of each Table print.
Insert the page break using Command Node
This may reach your requirement'
2020 Mar 12 9:14 AM
2020 Mar 12 10:29 AM
2020 Mar 12 11:32 AM
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.
Regards!