Skip to Content
author's profile photo Former Member
Former Member

Set page orders in Smartforms

Hi,

I have a smartform with multiply pages for VAT declaration. On the selection screen of printing program I can set which pages would be printed out (more appendixes). I created a main window in the first page with no data in it, only for command and set the 'Go to new page' i.e. PAGE_3 with specific condition. It works fine but if I wanted to set the new page from PAGE_3 to PAGE_5 it requires a main window on PAGE_3. Ok, I created (or copy) a main window on PAGE_3 and added command and condition there but it did not work. It seems that page setting works only for once for the first main window. Is it possible to set print order i.e. PAGE_1, PAGE_3 and PAGE_5 omitting PAGE_2 and PAGE_4?

Thanks,

György

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Oct 09, 2015 at 09:36 PM

    Hello György,

    First of all the there should be on one MAIN WINDOW for complete SF . If you create one more in the next page the logic inside the Main Window does not work.

    Second the requirement wich you mentioned is to get the respective page at the condition base, @Florian Hoffmann has correctly mentioned that , use one main window and inside that create the command lines one after other .

    Please have a look to attached image :

    Thanks

    Romit Raina


    command line.png (71.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded

    • Hello ,

      Okay so let me clear your doubts, may be i interpreted wrong to you . What I want to tell you that the logic / code / text which you put in the Main window of other Pages -> wont get displayed .

      But you need to put the Main window in every page which you create in SF, it may be blank/ not having any text filed in it , Only thing is Main window should be in each pages of SF,else it will give error while activating SF

      Next about Command lines it works differently ; i have scenario of command line , please try this one which give you the complete process of Command line.

      Step 1 :Create a SF having PAGE 1 with Main window.


      Step 2 :Create another page PAGE 2 with Main Window (with same dimension as for page1 main window.)


      Step 3: Create the NEXTPAGE1 of PAGE 1 (it will be copy of page 1 having all things which will be in page 1)


      Step 4: Click the Page1 and give Next Page as NEXTPAGE1.


      Step 5: Inside the MAIN WINDOW of page 1 create a TEXT filed ( put some text like ; PAGE 1)

      Step 6: Create COMMAND LINE after the text field and put GO to as PAGE 2.

      Step 7 : Create a table looping some internal table having record 500 . & print some record like in Main area of window put line item to display record.

      Step 8: Create the Secondary window above the Main window in Page 2 ; put text field with text PAGE 2)

      Output : Table entry will be displayed in Second page and if data overflowed it will go to the next page.

      Since we have put the TABLE after COMMAND LINE, so what COMMAND line do it will go to the PAGE 2 and PRINT the DATA of TABLE and come back again on PAGE1. This is the process of Command Line.

      Please try this and i hope this will give some idea for your requirement.

      Below is the snap shot of above steps , hope this will help you ;

      Thanks

      Romit Raina

      command line1.png (36.5 kB)
  • Posted on Oct 09, 2015 at 09:59 AM

    Hi György,

    please share your sf-tree so I can have a deeper look into it.

    The scenario you described works perfectly fine for me.

    I just have created every "goto-page"-command at the main-window.

    So I do not see your problem or I have missunderstand it.

    ~Florian

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Florian,

      Here you are. Part %CODE8 is only for a breakpoint. %CONDITION134 is for a variable from selection screen, if it's set than PAGE_5 should be printed out as you see in %COMMAND18, the 'Go to New Page' is set to PAGE_5. It works fine. But when I copied the MAIN_4 window into PAGE_5 (MAIN_4 is a small window, type Main Window but without texts) the SF doesn't take into account this part of the form, doesn't stop at breakpoint neither at %CODE8 here. But the other windows are printed out in PAGE_5 correctly. And because of the further sequence in MAIN windows doesn't work, the further pages doesn't printed out at all. I hope my explanation is clear.

      Rgrds,

      György

      SF_1.PNG (39.8 kB)
  • Posted on Oct 14, 2015 at 03:18 PM

    Hey György,


    I got a Logic, i believe you can use this and it will work as required .

    So , first of all create 5 Pages .>> in the First Page Main Window put the text / table which you want to show in first page .

    After that create command line 1 pointing second page >>after this create Table / text / template which needs to be print on second page ..

    Again create command line 2 pointing page 3 > after that table / text which needs to print on [age 3

    So repeat this until command line point page 5 comes & take care that all pages have same main window

    Now put the condition on command line in condition Tab like if input is to show page 2 than command line 1 will active and print all the below table / text , take care that table / text should have same condition.

    Stay Awesome

    Romit Raina

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.