Skip to Content
avatar image
Former Member

Smartform to print table of contents page

Hello,

I am developing a smartform to print price catalogs. As part of this I need to print table of contents in the first page with certain catagoriers and page numbers. The problem here is that I wouldn't know which category will start on which page until I process the entire form. I have tried one approach where I defined the window in first page as 'Final Window', collect all the page numbers from the subsequent pages and print them in this 'final window'. But the issue is this table of contents can go for more than one page. I can't do a 'Go to new page' in a secondary window and defining it as a main window will not be processed as a 'final window'. If i processed this table of contents page at the end of all pages, I am not sure if there is a way to change the sequence of pages again at the end. Please share your suggestions.

Thanks..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 07, 2011 at 09:07 AM

    Hi,

    In order to print properly based on category, you have to first build correct internal table that the way you want to print on pages. For example: lets say you want to print category 1 along with its price details in first page and category 2 related fields in second page as so on.

    Then first step should be use program lines and build and internal table with category 1 and its field should be populated first then category 2 in the table. After you successfully prepare internal table lets say IT_TAB then use table and loop it using IT_TAB. In side table line you can trigger next page command when category changes to 2.

    Hope this should solve your issue.

    Thanks & Regards,

    Gaurav.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Well i dont really see a way to do this properly.

      But i got an idea how to overcome it. admitting that it is not a nice idea but still.

      You could process these kind of form twice. First time into nirvana, getting and storing the informations you need to print on you TOC. and well then printing it a second time, restoring you previously stored information about the TOC and then print it.