02-12-2016 7:37 AM
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.
02-12-2016 2:47 PM
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.
02-12-2016 2:47 PM
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.
02-15-2016 6:52 AM
02-15-2016 8:46 AM
Indeed. And on the second page you select the first page as 'next page'.
02-15-2016 8:58 AM
02-15-2016 10:42 AM
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?
02-15-2016 10:53 AM
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.
02-15-2016 12:03 PM
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?
02-15-2016 12:15 PM