‎2006 Feb 17 11:42 AM
Hi,
I have two pages on my smartform. Page1 with a header and a template, Page2 only with a text element.
In the page1 I have page2 as nextpage and after the template the command Go To New Page to Page2.
In the page2 the Nextpage is page1.
In the print preview the form appears with 3 pages. The first and second looks fine but it's printing the header (of the first page) in a third page.
What am I doing wrong?
(beginner...)
Thanks in advance.
‎2006 Feb 17 11:46 AM
Since the next page of Page2 is Page1, the order of creation of the pages would be:
Page1-Page2-Page1-Page2...
If you want to display the header in the first page alone give the CONDITIONS for the header as AT FIRST PAGE. Check this check box to display header at the first page alone...
‎2006 Feb 17 11:50 AM
hi,
in the output Conditions of the header ..
check 'only in first page '
regards
satesh
‎2006 Feb 17 11:56 AM
‎2006 Feb 17 11:57 AM
Check whether you have content in it...
Did you have a main window defined in PAGE1
‎2006 Feb 17 12:01 PM
I don't have a third page defined on the smartform and it shouldn't appears on the preview.
In the page1 I have a main window, in the page2 I have a secondary window with a text in it.
‎2006 Feb 17 12:07 PM
Are you displaying smartforms using a standard report program with data passed from the report...
‎2006 Feb 17 12:15 PM
No, i'm executing the function module of the smartform directly. I haven't made the calling report yet...
Anyway, it should appear on the print preview, shoudn't it?
‎2006 Feb 17 12:39 PM
‎2006 Feb 17 12:23 PM
Hi,
It will work fine if you give the Go to new page as '%page1'.
Regards,
Gayathri
‎2006 Feb 17 12:42 PM
I still have a problem.
Page1 - contains a header and a main window with a template
Next Page - %Page2
after the template I defined a command with 'Go To New Page - %Page1'
Page2 - contains a secondary window with a text
Next Page - %Page1
Result in the preview:
2 pages - first page OK, second page blank. Page2 doesn't appears.
Help...
‎2006 Feb 17 2:12 PM
‎2006 Feb 17 2:25 PM
Hi Sonia,
Please do the following :
Page1 - contains a header and a main window with a template
At Main Window Define
Command:
1) Next Page - %Page2 --> conditions set as
SFSY-PAGENAME = 'FIRST' (your first first page name).
You have to set your command in main window only.
Lanka
‎2006 Feb 17 2:29 PM
Hi Sonia,
WHy dont you try giving for Page1,Next page & for Next page, next page as your concluding pages?
‎2006 Feb 17 2:44 PM
Ok, now the preview result is:
first page ok, second page ok, but a third blank page still persists...
Thanks anyway Lanka.
‎2006 Feb 17 2:50 PM
Hi Sonia,
Ok. Do the following you will get your Third page :
Hi Sonia,
Please do the following :
Page1 - contains a header and a main window with a template
At Main Window Define 2 Commands
Command1:
1) Next Page - %Page2 --> conditions set as
SFSY-PAGENAME = 'FIRST' (your first first page name).
Command2:
1) Next Page - %Page3(your third page name) --> conditions set as
SFSY-PAGENAME = '%Page2 ' (your second page name).
You have to set your command in main window only.
Please reward points for helpful answers
Lanka
‎2006 Feb 17 2:57 PM
Ok, you didn't understand.
I have only Page1 and Page2 defined on my smartform but there is a third blank page in the print preview I don't know from where it comes...
‎2006 Feb 17 3:01 PM
Hi Sonia,
I misunderstood your question earlier. If you don't have third page then just ignore mu previous post.
Ok Do the following :
At page2 ---> set the page attributes as follows
Select Page2> General attributes> Define next page as "PAGE2".
Lanka
‎2006 Feb 17 3:09 PM
I made it but I can't activate the smartform. The error 'A page without a main window cannot point to itself as next page' appears.
In this Page2 there is a window (secondary) with a text. If I change this window to 'M Main Window' the print preview crashes... I think it's because there can't be two main windows (I still have one main window on page1).
‎2006 Feb 17 3:15 PM
Hi Sonia,
Ok. I got it.
Please copy main window from page1 to Page2. Then restrict the Main window to page1 only by following setting.
Step1:
Copy the main window from Page1 to page2.
Step2:
Select the main window> Select Conditions> then select <u>Check box</u> at add additional event "<u>only on First page".</u>
Please reward for all useful answers.
Regards,
Lanka