10-20-2008 10:38 PM
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.
10-20-2008 11:55 PM
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.
10-21-2008 3:53 AM
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.
10-21-2008 4:35 AM
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.
10-21-2008 6:43 AM
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
10-22-2008 2:01 PM
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)