Application Development and Automation 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: 
Read only

smartforms page

Former Member
0 Likes
916

Hi all!

I designed a smartform with 2 pages in which the footers are different for both pages.The first page is containing a table in the main area which is retrieving data dynamically and this is running into the second page as well.Now the requirement is that the 2 pages should be printed irrespective of the data is less.Right now i am getting only the first page and when the data is less.Please suggest me any solution for this.

Thanks in advance

Prasanna Kumar

1 ACCEPTED SOLUTION
Read only

manuel_bassani
Contributor
0 Likes
898

Hi prasanna,

in the last of main area (outside the loop or table node i presume you are using) insert a command node with new page instruction.

You should condition the execution of this command only for the first page.

In this way if the data finish in the first page you will force a page break (and only for the first page).

Please remember to reward points for useful answers and to close the post when your problem is solved.

Regards, Manuel

8 REPLIES 8
Read only

manuel_bassani
Contributor
0 Likes
899

Hi prasanna,

in the last of main area (outside the loop or table node i presume you are using) insert a command node with new page instruction.

You should condition the execution of this command only for the first page.

In this way if the data finish in the first page you will force a page break (and only for the first page).

Please remember to reward points for useful answers and to close the post when your problem is solved.

Regards, Manuel

Read only

0 Likes
898

Hi Manuel!

Can u help me out with the command to be inserted..

thanks

prasannna kUmar

Read only

0 Likes
898

Consider the first page:

1. at the end of the main window you should insert a command node.

2. in the command node you have just inserted check the flag "Go to new page"

3. choose the second page in the dropdown list

4. in the "Conditions" tab check the flag "Only on first page"

in this way:

- if the data do not exceed the first page you will force a new page break

- if the data exceed the first page, the normal execution is guaranteed

Regards, Manuel

Read only

0 Likes
898

Hi manuel

EXCELLENT!

The code is working and i can see the 2 nd page now but the problem is that i am not getting the header section of the main window in the second page.The whole main window in the second window disappeared.Please advise

Thanks a lot

Prasanna Kumar

I will be certainly awarding points to this

Read only

0 Likes
898

Hi manuel

EXCELLENT!

The code is working and i can see the 2 nd page now but the problem is that i am not getting the header section of the main window in the second page.The whole main window in the second window disappeared.Please advise

Thanks a lot

Prasanna Kumar

Read only

0 Likes
898

Hi prasanna,

sorry for the delay... i was at lunch

in which node do you have defined the header data?

i tried to use a secondary window and it is displayed in the second page


PAGE1
     HEADER
          HEADER_TEXT
     MAIN
          LOOP
          NEW PAGE COMMAND

PAGE2
     HEADER
          HEADER_TEXT
     MAIN
          LOOP
          NEW PAGE COMMAND

do you use a secondary window (like in this example) or do you use the header of table node (or what else?)

Regards, Manuel

Read only

0 Likes
898

Hi manuel!

I defined as per ur instructions,but my window is main window and not secondary.

In the main window i am defining a table again.under table main section i had coded the page break logic.Is it okay

Will i have to do this for both the pages?

Thanks for your expert help

prasanna kumar

Read only

sreekanthgo
Contributor
0 Likes
898

Hi Prasanna Kumar,

To reolve your issue, follow the below steps:

1) Do not make table control borders as visible.

2) Use a overlap window and draw lines to design a table.

3) Arrange the borders properly.

Thanks,

Sreekanth