Skip to Content

Smartform : Print only selected pages from multiple pages

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 20, 2008 at 10: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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Kartik Raja

      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.

  • avatar image
    Former Member
    Oct 21, 2008 at 05: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

    Add comment
    10|10000 characters needed characters exceeded

    • 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)