cancel
Showing results for 
Search instead for 
Did you mean: 

New page in smartform issue

soumya_jose3
Active Contributor
0 Kudos

Hi,

I am using COMMAND to go to new page in smartforms as follows:

LOOP

COMMAND (In general attributes:selected 'Go to new page' , in conditions tab selected 'Not on First Page')

BODY1 (text)

BODY2 (Text)

Still while the pdf is generated I am getting one line of BODY1(of the second loop pass) in the first page.

How to avoid it. I want each loop pass to be in separate pages.

Thanks & Regards,

Soumya.

Accepted Solutions (0)

Answers (3)

Answers (3)

soumya_jose3
Active Contributor
0 Kudos

Solved by checking the thread:

Former Member
0 Kudos

Hi Soumya,

if you want to remove the line belonging to the second loop pass in the current page , select the page break option(by putting a tick mark ) in details button under the table tab (whether it may be a table or a template).

Former Member
0 Kudos

soumya,

first thing is post smartform related issues in correct forum.

by the way,

you can keep the jump to next page command before the loop it self...make it trigger only once(only on fiirst page) or comparing with some variable

Former Member
0 Kudos

Hi,

I think you dont need the condition "NOT ON FIRST PAGE" .

On the first page the command will not work because of this condition.

Please remove that condition and try.

Thanks

soumya_jose3
Active Contributor
0 Kudos

If I remove that condition a blank page will come as the first page.

So I tried using the COMMAND as follows:

LOOP

BODY1 (text)

BODY2 (Text)

COMMAND (In general attributes:selected 'Go to new page' )

But the problem is now it displays an extra balnk page in the end .Is there any condition to prevent this extra page in the end?

Regards,

Soumya.

Former Member
0 Kudos

In the command use the following condition.

SFSY-PAGE (NOT EQUAL TO) SFSY-FORMPAGES

soumya_jose3
Active Contributor
0 Kudos

Hi,

I have used the condition 'SFSY-PAGE (NOT EQUAL TO) SFSY-FORMPAGES' in the COMMAND

PAGE

WINDOW

LOOP

BODY1 (text)

BODY2 (Text)

COMMAND (In general attributes:selected 'Go to new page' , in conditions tab selected 'SFSY-PAGE (NOT EQUAL TO) SFSY- FORMPAGES' )

Now new page is not geneating for any loop pass.

Regards,

Soumya.