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

Problem With Smartform Main window

Former Member
0 Likes
578

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
Read only

Former Member
0 Likes
551

Hi Swetha,

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

Read only

Former Member
0 Likes
551

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

Read only

0 Likes
551

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

Shweta

Read only

Former Member
0 Likes
551

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