09-15-2008 9:05 PM
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
09-15-2008 9:49 PM
Hi Swetha,
you need to put a logic for line items to loop again on the second page.
09-16-2008 8:18 AM
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
09-16-2008 1:57 PM
thanks for the respone.....will try it out and then will let u all know
Shweta
09-17-2008 4:38 PM
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