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

Smartform Problem

Former Member
0 Likes
327

hi frnds,

i m working on smart form, i have created two page in it, having main window on each, its working fine, but when i m adding one more page and setting it as next page in second page, but it is not getting displayed,

i tried for one more thing to disply that third page , i created i command node in second page in main window and set goto new page to third page , its working fine but creating one problem for me , its skip one window below the main window and directle go for third page, if i write goto new page in in that secondary window it is giving error message

"goto new page not allowed in secondary window",

so plz help me.

Thanks and Regards.

Mahesh

1 REPLY 1
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
310

The Smartform book from SAP Press mentions that if there are more than 2 pages then you'll need to program the flow from 2nd page further yourself. So I think you are on the right track here with the command node.

It seems that Command node with page break must be in the MAIN window, so you were right there as well. Most likely the window that's not being printed has a condition "at the end of Main window". If that's the case you'll need to work around it by using some kind of a flag.

Also make sure that the page break is triggered <b>before</b> the first loop pass, which should go to the next page, not <b>after</b> the last pass on the current page. For example, in one of my forms I ended up with the following loop in the MAIN window:

Loop node

Command node - check "go to next page" flag

Table node with the Text fields

Inside Table node: Program Lines node - set the "go to next page" flag

Hope this helps.