cancel
Showing results for 
Search instead for 
Did you mean: 

Want to stop second page in Smartform

former_member1050074
Participant
0 Kudos

Hi Friend

I designed a smartform with two pages, I used header window and main window in both the pages.Additionally I used some other window in first page.If I print multiple records not a problem.But in case, if records come within one page, it should not trigger the second page.But In my case its printing header text in second page.I used loop statement inside the main window.Please let me know how can I stop to triggering the next page, if record reached maximum level.

I tried with command statement but its not working.

Thanks

Gowrishankar

Edited by: gowrishankar p on Jan 11, 2011 2:24 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member1050074
Participant
0 Kudos

Issue resolve.Because of space after footer its showing the new page.

0 Kudos

Hi,

Do one thing, Delete the currently printing record from the internal table you are using in the loop( E.g. DELETE IT WHERE cust = wa-cust. ). And then in the condition tab of command node check IT[] NE INITIAL. Doing this will make sure if there is no record left to be printed then it won't call the next page.

Regards,

Antim