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: 

Smartform : Print only selected pages from multiple pages

kartikrajag
Participant
0 Kudos

Hi,

I've a smartform with six pages: Pag1, Page2 ...Page6. (all six pages are one smartform )

My driver program has six check boxes corresponding to the above six pages, based on my check box selection I want to print the pages.

Does it possible with one smartform ? and How ?

Do I need to create six different smartforms ?

Your comment on this is highly appreciated.

5 REPLIES 5

amit_khare
Active Contributor
0 Kudos

it can be done with one Smartform only....

Based on the checkbox selected you can use the Condition Tab of the Nodes to display or hide the data.

Just pass that Checkbox as import parameter to the form.

0 Kudos

Amit,

When I use the conditions tab, for windows, It just hides the windows and prints the blank pages, eventually, it prints all pages, some of them being blank pages, this doesnot work for me, I need to supress the page itself.

Unfortunately, the node page doesnot have the tab Conditions.

Any other hint on this highly appreciated.

0 Kudos

Dear Raja

You have two option to full fill your requirment

1,

create a alternative in your main window.


right click-> create-> flow logic -> alternative.

Alternative hold two conditions namely true an false.

This alternative acts as a if else condition. So give your condition in true and start creating your windows and tables/templates under it.

And false condition create what all you require if true condition fails.

With this you can control pages with the conditions.

2.

Create pages as per your requirement.

In the global definition > initialization tab>


if w_page = 1.
control_parameters-startpage = '%PAGE1'.
else.
control_parameters-startpage = '%PAGE2'.
ENDIF.

w_page is the variable what you pass in the driver program

Hope this will help you.

Former Member
0 Kudos

Hi,

The only way to do this is to create 6 different smartforms, because you cannot restrict pages using conditions.

What type of data you are displaying in the smartforms, is that static or dynamic(Template or table) ?

Regards

Karthik D

0 Kudos

Hi Karthik,

Some pages are static some are dynamic: Page1: is static Ex. Cover Sheet

Page2: Table of Contents ( based on the data this page may go to multiple pages)

Page3:Summary of Price: dynamic, based on the line items

............. ................ Pag6

based on the situation I will use either Template or Loop. (not decided yet)