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

Smartforms pages prob

Former Member
0 Likes
1,663

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.

19 REPLIES 19
Read only

Former Member
0 Likes
1,642

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...

Read only

Former Member
0 Likes
1,642

hi,

in the output Conditions of the header ..

check 'only in first page '

regards

satesh

Read only

0 Likes
1,642

Now the third page still appears but in blank...

Read only

0 Likes
1,642

Check whether you have content in it...

Did you have a main window defined in PAGE1

Read only

0 Likes
1,642

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.

Read only

0 Likes
1,642

Are you displaying smartforms using a standard report program with data passed from the report...

Read only

0 Likes
1,642

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?

Read only

0 Likes
1,642

Hi,

Try giving the next page of page2 as %page2%.

Read only

Former Member
0 Likes
1,642

Hi,

It will work fine if you give the Go to new page as '%page1'.

Regards,

Gayathri

Read only

0 Likes
1,642

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...

Read only

0 Likes
1,642

up

Read only

0 Likes
1,642

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

Read only

0 Likes
1,642

Hi Sonia,

WHy dont you try giving for Page1,Next page & for Next page, next page as your concluding pages?

Read only

0 Likes
1,642

Ok, now the preview result is:

first page ok, second page ok, but a third blank page still persists...

Thanks anyway Lanka.

Read only

0 Likes
1,642

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

Read only

0 Likes
1,642

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...

Read only

0 Likes
1,642

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

Read only

0 Likes
1,642

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).

Read only

0 Likes
1,642

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