Skip to Content
avatar image
Former Member

Smartform dynamically add pages

Hi everybody,

I have a smartform regarding a company.For each company i have several locations and for each location i have a table with some informations that need to be displayed.

My problem is that i will never know how many locations a company will have,only until runtime when i read some tables.My problem is that i have to display the informations for a location on a different page,so that i have to dynamically add pages in the smartform depending on the number of locations,which will be always different.

Does anybody know how i can do this?

thanx

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 23, 2009 at 09:40 AM

    Hi,

    you have to add an extra page in which the data is printed you want.

    You have to print this in the MAIN window.

    In the MAIN window build in a loop (by loop or TABLE).

    Do this at the end of MAIN window.

    Inside this loop is the first thing a COMMAND (flow logic)

    In this COMMAND your call your next page.

    After that print and fill your variables.

    succes.

    Gr., Frank

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi ,

      yes,i have placed the next page correctly but there was something wrong in my loop.In the end i have done like F.Bernsen advised me and it solved my problem.

      So thank you for the quick help

  • avatar image
    Former Member
    Mar 23, 2009 at 10:20 AM

    in main window you to create the LOOP ..

    after that create one program lines and within that put your

    loop at itab.

    at new of company code.

    here check the flag

    flag = x.

    endat.

    endloop.

    if flag = X

    call COMMAND and set the next page is NEXT.

    Add comment
    10|10000 characters needed characters exceeded