Application Development 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: 

Problem With Smartform Main window

Former Member
0 Kudos

Dear All,

I have a requirement in which I need to print a PO using Smartforms.

In this requirement we need to check a flag, and based on the flag we need to call the subsequent pages.

if the Flag is set then I need to print the first page 2 times and after these two pages Terms and conditions page would come.

In the main window of first page i have put a contition check for this flag.If the condition is true I am calling the First page as Next page and if the condition is not true the Last page(T&C) is called.

now, the issue is when the condition is true means when I need to call the first page twice then the very first page of the output is coming fine but when the same page is printed again the item details are not getting printed also the last page is not coming in this case.

please help.

Thanks in advance.

regards,

Shweta

4 REPLIES 4

Former Member
0 Kudos

Hi Swetha,

you need to put a logic for line items to loop again on the second page.

Former Member
0 Kudos

When you are calling first page again (as Second page) based on your flag, it will copy the only the content of all windows except main widow.

To solve your issue, Put the same loop again in the mainwindow with condition which is used for trigerring second page.(Repeat page).

Regards

Afsal

0 Kudos

thanks for the respone.....will try it out and then will let u all know

Shweta

Former Member
0 Kudos

Hi I tried the solutions given by you.....but problem is still there.

please suggest if there is any other way to resolve the same.

Thanks in advance.

regards,

Shweta