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

triggering new-page in smart forms

Former Member
0 Likes
2,318

hi

i have a po form which has terms & conditions,these needs to be printed in separate page.

i do not know how to trigger new page(even if Main window is not full)

i created a Window after Main window and tried using

"COMMAND" option , but it says i cannot use it because it's not a main window..?? am i missing some thing or is there is a another way??? i defined two pages : First and Last??? any suggestions will be appreciated..

Regards

Siva

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,241

Hi Thanks for ur suggestions..but it's not working??

First Page>>

In Main window

>>i have a table (Head,Main,Foot)-

Head-Using for Item Header

Main-Item level Data

Foot--Sub Totals

I created programline-node under Main window(not Table Main)and placed ur suggested code??it's not triggering the next page...

My Page Attributes :

First >>calls Next

Next >>calls Next ??

Missing something????

Thanks

Siva

hi

i have a po form which has terms & conditions,these needs to be printed in separate page.

i do not know how to trigger new page(even if Main window is not full)

i created a Window after Main window and tried using

"COMMAND" option , but it says i cannot use it because it's not a main window..?? am i missing some thing or is there is a another way??? i defined two pages : First and Last??? any suggestions will be appreciated..

Regards

Siva

7 REPLIES 7
Read only

Former Member
0 Likes
1,241

Hi Siva,

1) Create a Program lines element UNDER the main window(not after it).

2) Check if the page is the last, in the conditions and trigger a new page using new-page command.

if page = sfsy-formpages.

new-page.

endif.

REgards,

Ravi

Read only

0 Likes
1,241

hi,

Insert this code

if page = sfsy-formpages.

<b>new-page.</b>

endif.

Regards,

Santosh

Read only

Former Member
0 Likes
1,241

Put the Command node as your last node in the Main window.

Read only

Former Member
0 Likes
1,242

Hi Thanks for ur suggestions..but it's not working??

First Page>>

In Main window

>>i have a table (Head,Main,Foot)-

Head-Using for Item Header

Main-Item level Data

Foot--Sub Totals

I created programline-node under Main window(not Table Main)and placed ur suggested code??it's not triggering the next page...

My Page Attributes :

First >>calls Next

Next >>calls Next ??

Missing something????

Thanks

Siva

Read only

0 Likes
1,241

Does your Command Node have the checkbox "Go to new page checked" and the page Next in the dropdown list?

Read only

Former Member
0 Likes
1,241

Hi Siva,

Instead of using the new page you can directly call a new page by using the "COMMAND" statement. After displaying all the values in the Main Window give this command statement. Like how you create program lines you have to create a command statement. In the attribute of the "Command" statement give the new page as the page where you have the "Terms and Conditions" text. Hope this solves this issue.

Regards,

Tushar

Read only

0 Likes
1,241

Thank you all for valuble suggestions.

"COMMAND">>>go-to-page worked..

Thanks

Siva