20 Replies Latest reply: Nov 13, 2013 12:07 PM by Sebin Chacko RSS

smartform - two main windows

Tin Cruz
Currently Being Moderated

Hi Guys,

 

I wanted to create two windows that acts like two main windows.

 

The upper part contains the original copy then the lower part should contain duplicate copy of the upper part.

 

Heres a sample output:

 

Original Copy:

 

material1      text

material2      text

 

Duplicate Copy:

material1      text

material2      text

 

 

How will I do it? Please help...

  • Re: smartform - two main windows
    Vanessa Noronha
    Currently Being Moderated

    On the page right click, say create window..In general attributes for the window, select window type as main window

     

    To copy the main window u have made, right click on the main window, say copy then paste

  • Re: smartform - two main windows
    Mytri R
    Currently Being Moderated

    hi vaneessa,

     

    i copied main window into window w1, its type is main window only. in layout, w1 ia at top, after that main window.

     

    then text in w1 is getting displayed, when i kept main window at the top n w1 below it, its going into dump.

     

    can u plz tell a solution for this.

     

    Edited by: Mytri on Mar 11, 2008 11:36 AM

  • Re: smartform - two main windows
    Nick Young
    Currently Being Moderated

    Hi,

     

    Smartforms does not allow two main windows, but you can achieve what you need in one main window using two tables.

     

    E.g.  Your main window contains

     

    Original Copy: (as a text element)

     

    material1 text (as a table)

    material2 text

     

    Command (to trigger a new page)

     

    Duplicate Copy: (a text element)

    material1 text (as a second table)

    material2 text

     

    Hope this helps.

     

    Regards,

    Nick

    • Re: smartform - two main windows
      Tin Cruz
      Currently Being Moderated

      hi nick,

       

      actually i have tried doing this but then the second table only prints on the first page.

       

      no data appears on the second page.

       

      by the way do you know any standard field symbols that determines if it is a new page?

      tnx..

       

       

       

      tnx..

      • Re: smartform - two main windows
        Shivakumar Hosaganiger
        Currently Being Moderated

        Hi

         

        if you second page then copy the main window of the first page and also the tables within it and adjust the width accordingly

         

        Regards

        Shiva

      • Re: smartform - two main windows
        Nick Young
        Currently Being Moderated

        Hi,

         

        I've set up a simple form that follows the approach and it seems to work fine.  If you want to add some more detail on how your form is structured this might help.

         

        With regards the standard fields, there are system fields for the page number (SFSY-PAGE) and page name (SFSY-PAGENAME), but I don't know of a flag for a new page.

         

        Regards,

        Nick

        • Re: smartform - two main windows
          Saleha Shaikh
          Currently Being Moderated

          Hi Nick,

          Hi ,

          I have a smartform and my requirement to as follows.

          In first page i have a main window where data is printed in a table, now in this table i need to print only first 6 rows and remaining rows should be printed in next page but the layout of the next page would be different than the 1st page main window.

           

          So when i am trying to create a main window in next page with different layout and this second page can extend to diffent pages based on the data in table but i am getting short dump when i am creating a main window which is not similar to 1st page

          Is it not possible to have two different main windows in two pages. Is there is constraint that we cannot create different main window. If no then how do i create two different main windows.

           

          Basically i am getting short dump when i am creating a window type as main , i havnt put anything in the window yet .

           

          Regards,

  • Re: smartform - two main windows
    Danish Kazi
    Currently Being Moderated

    Hi,

     

    Smartforms do not allow 2 main windows inside a single form. You can only use one main window.

     

    What you can do is create 2 tables inside your main window. Just before the start of the Duplicate table make use of a COMMAND line to forcefully shift the printing on the 2nd page.

     

    Regards,

    Danish.

  • Re: smartform - two main windows
    Manju K
    Currently Being Moderated

    Hi eventhough its too late but Iam seeing still we are struggling with this Issue ...I solved by making a customised program ZRFFOUS_C and assigning it in FBZP ..Its working fine Iam able to display two line items Using a temporary Internal table with AT LAST statement and control_form function...If anyone required code you can message here.,
    Manjunath K

    • Re: smartform - two main windows
      K S
      Currently Being Moderated

      Im not getting it. How to do this..?

      Because in page2 we have to give something as next page and we cant give page 1 - it will hang. And page2 cannot point to itself.

      Thankyou for all replies.

       

      Regards,

      KS

      • Re: smartform - two main windows
        Manju K
        Currently Being Moderated

        Hi KS

         

        There is no mandatory to give second page a next page since I think you are displaying static data in that page (page2 cannot point to itself.) and if you are displaying dynamic data then I don't think giving next page as Page2 for Page2 doesn't hangs .FYI look at standard script of Payment advice F110_D_AVIS page NEXT contains its next page as page NEXT..

        • Re: smartform - two main windows
          K S
          Currently Being Moderated

          Thanks Manju for coming back with reply.

           

          Ya you are right, i dont know why i was reading "with" as "without". Finally it worked when in condition i wrote next page as page2 for page1 and page 2 for page2.  But my first page still does not print the main window table. Though its printing for the second copy. Just for more information, my second page is just same as first page - only heading changes - so both have main windows. Also, suppose page 1 extends to 2 pages because of more items, then page 1 and page 2 both has more than 1 page - lets say 2 pages. So my 2 pages of 1st page prints 1 of 1 and 2of1. And 2nd page prints - 1of2 and 2 of 2. But i just want it as 1 of 1, i of2 ; and then for second page two copies i need of 1 and 2 of 1. Else putting both pages in same SF would not suit my requirement.

           

           

          Thanks for your reply,

           

          KS

  • Re: smartform - two main windows
    K S
    Currently Being Moderated

    this explains for 2 pages with main windows scenarios:

    http://www.****************/Tutorials/Smartforms/Command/Index.htm

    • Re: smartform - two main windows
      Sebin Chacko
      Currently Being Moderated

      hello,

       

      i dont know why do you want to create two three main winodws!

      we cant use the following steps?

      1.create one text area say text1( for heading/ document part for orginal table)

      2.create a table right under the text1 and that would be your original table, say table1

      3.again createone more text area say text2(for heading / document part for duplicate table)

      4 copy table 1 and paste it right under text2.

         - to copy and paste under text2, copy table1 and paste it somewhere in main window then drag and drop right under the text2.

       

      done!

       

      dont go for seconadry windows! one simple page and one main window can make it much better

       

       

      cheers!

    • Re: smartform - two main windows
      Sebin Chacko
      Currently Being Moderated

      hi,
      And some more informations,

      only one main window is allowed to one page,
      if you create more pages with more main windows on them, make sure you follow the same height ,width for the main windows.

      main windows are dynamically growing with respect to the data and can be extended to next page automatcally on massive data

  • Re: smartform - two main windows
    Prakash Bharatam
    Currently Being Moderated

    image.jpg

    Hello Friends,

    I am looking to create the text shown in pic with 18 as number beside the sub-total table. Sub total page is part of main table. I am unable to bring the text (bank details) right after the main table and beside (left to) sub-total box.

     

    I tried template in table, table in table etc but i could not do the right thing.

     

    Please help.

     

    Thanks,

    Prakash

Actions