cancel
Showing results for 
Search instead for 
Did you mean: 

To print LAST page in smatform

Former Member
0 Kudos

Hi All,

The requirement is to change the existing smartform.

The smartform already contains FIRST PAGE and NEXT PAGE.

Now the requirement is to add a NEW PAGE that should be printed at last.

ie the FIRST and LAST page should be printed compulsarily while the NEXT page is optional.

My doubt is in attributes in the NEXT page option if we give NEXT(both in FIRST and NEXT page) then how will the LAST page will be printed.

Or should the new layout for LAST page should be incorporated in NEXT page only.

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi sridhar,

After end of the table in main window of the first page create command node :

In general attributes check the check box go to new page : last page.

Regards,

Sravanthi

0 Kudos

Hi Sridhar,

You can put the condition as below.

If &NEXT-PAGE& EQ '0'.

Put the window code .

endif.

regards,

Dwara.

Former Member
0 Kudos

But what is the command to be used to call a new page dynamically.

Former Member
0 Kudos

Hi Sridhar,

Use a command for that.

You have 3 pages

First Page

Next Page

Last Page

Now at the end of first page use a "Command" with condition for the next page to trigger.

If condition will satisfy then the contents of next Page will trigger else last Page triggers directly.

Reply back if u will face any problem.

If ur problem get solved then please close this thread.

Regards,

Ankur

Former Member
0 Kudos

Hi,

But what is the command to be used to call a new page dynamically.

With regards,

Sridhar

Former Member
0 Kudos

Hi,

Add a command last in you main window to go to last page.

This will get you last page printed once after all you other pages, independent of if you print one, two or several pages before you LAST page.

Regards

Åsa Thenstedt

Former Member
0 Kudos

hi

you need to add the LAST Page in the attributes in the NEXT page when ever the Next page is triggered LAST page will be triggered.

And need to check the condition in FIRST Page for the NEXT Page is getting triggered or not if not use the COMMAND to trigger the LAST page .

Former Member
0 Kudos

Hi

in the attributes of the NEXT page, give the next page as LAST page and see If it is getting triggered.

Vishwa.