Application Development 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: 

Need to Call New page In Smart form. But After table end It is showing.

former_member196331
Active Contributor
0 Kudos

HI,

I have one requirement.  In Smart form I have two pages, In Page1 i Put main window , Under this i used Table. For displaying the Item details.

rows will be different based on the Each Document Header. So,  No of pages will be Come based on Row Details.

In page2 i used Template. Here i entered Some data in the text Fields. My goal is when ever New page is calls. Page2 will Come then Page1 remaining data will come. Page2 is nothing but back page Terms and conditions.

I Have some basic knowledge on Smart forms. Through the forum what i got information is,  by using the Go to new page we can call the next page.

So, i created Command  under the main table . And calling the Second page.  Under the Command i used the Condition as

SFSY-PAGE = SFSY-FORMPAGES.  But there is no result.

But What it is showing is,After end of Main table. It is calling the Next page. Like Almost all , Last page is Second page.

Please Have a look on below attached Images.

It is showing like below

PdfPage1(Main table of smart form first page)

Pdfpage2(Main table of smart form first page)

PdfPage3(Main table  of smart form first page)

Pdfpage4(Smart form Second page)

But what i need is

PdfPage1(Main table of smart form first page)

Pdfpage2(Smart form Second page)

PdfPage3(Main table  of smart form first page)

Pdfpage4(Smart form Second page)

PdfPage5(Main table  of smart form first page)

Pdfpage6(Smart form Second page).


Need your valuable suggestions.




1 ACCEPTED SOLUTION

Patrick_vN
Active Contributor
0 Kudos

Hi,

Hav you tied modifying the general parameters of both your pages?

By changing the next page you can have first page > second page  > first page > second page>... (and that should happen automatically (unless you print only one page))

If the forced-jumping-to-the-next page does not work, you might try to debug it. Press F8 in your smartform, then display the code of the show function module and look up your piece of coding with the search function.

8 REPLIES 8

Patrick_vN
Active Contributor
0 Kudos

Hi,

Hav you tied modifying the general parameters of both your pages?

By changing the next page you can have first page > second page  > first page > second page>... (and that should happen automatically (unless you print only one page))

If the forced-jumping-to-the-next page does not work, you might try to debug it. Press F8 in your smartform, then display the code of the show function module and look up your piece of coding with the search function.

0 Kudos

In the First page. I have to Select Next page as Page2.

0 Kudos

Indeed. And on the second page you select the first page as 'next page'.

0 Kudos

Yes...

former_member259807
Active Participant
0 Kudos

SFSY-PAGE = SFSY-FORMPAGES means that this condition will only apply to the last page of the total 'run', which explains why page2 is only called once (at the end as last page).

What you can do is remove the condition. Can you try that please?



0 Kudos

Hi,

Need small clarification.

SFSY-PAGE = SFSY-FORMPAGES


Why it is Satisfies  In last page.

I put the break point.  the meaning of the above one is 

1 =1

2 = 2


At the fist page 1 = 1  3 =3

but u said it will satisfies only at last page.

Imagin last page 5

5= 5. yes Satisfies But what about 1 = 1 , 2 = 2 ,3 = 3 in this scenario also it will satisfies.

Correct me anything wrong in the above statement.

0 Kudos

Well, my idea was to remove that condition so you will not have to worry about the content of these 2 system fields.

As far as your assumption goes, SFSY-FORMPAGES should not contain the value of SFSY-PAGE on every page. However, you seem to have this situation in debugging, I have no explanation for that. But first try and remove the condition and see of the terms-page (page2) is printed after each main page (page1). That is your goal, right?

0 Kudos

Yes, I removed it's working. Thanks for your reply..