ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Displaying multiple windows

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Displaying multiple windows

    Hi,
    I have a window SLF that allows the user to enter notes via a selection option, which causes a window to pop up for their entry. The SFL allows several entries to be selected and each is handled in order.

    Here's the issue, when they select several entries; for the first selection, the pop up is displayed over the SFL. For the second and beyond, the screen is erased so they only see the pop up window.

    I'm using a dummy record with overlay and assume and the window record has overlay.

    What am I missing?
    Everyday's a school day, what grade are you in?

  • #2
    Re: Displaying multiple windows

    Are you using the RMVWDW keyword?
    Regards

    Kit
    http://www.ecofitonline.com
    DeskfIT - ChangefIT - XrefIT
    ___________________________________
    There are only 3 kinds of people -
    Those that can count and those that can't.

    Comment


    • #3
      Re: Displaying multiple windows

      Originally posted by kitvb1 View Post
      Are you using the RMVWDW keyword?
      No.
      Everyday's a school day, what grade are you in?

      Comment


      • #4
        Re: Displaying multiple windows

        remove the dummy record & assume nothing <tic> compile the DSPF using RSTDSP(*YES) (or use CHGDSPF)
        I'm not anti-social, I just don't like people -Tommy Holden

        Comment


        • #5
          Re: Displaying multiple windows

          Originally posted by tomholden View Post
          remove the dummy record & assume nothing <tic> compile the DSPF using RSTDSP(*YES) (or use CHGDSPF)
          Ok Tom,
          Did as you instructed and now the SFL is gone as soon as the first pop up is displayed and stays lost until the last pop up is closed. (?)
          Everyday's a school day, what grade are you in?

          Comment


          • #6
            Re: Displaying multiple windows

            can you post enough code so that I can play with this quickly?

            Thanks
            Jamie
            All my answers were extracted from the "Big Dummy's Guide to the As400"
            and I take no responsibility for any of them.

            www.code400.com

            Comment


            • #7
              Re: Displaying multiple windows

              Sure jamie, see attchments....
              Attached Files
              Everyday's a school day, what grade are you in?

              Comment


              • #8
                Re: Displaying multiple windows

                oops, gave you the SFL code, let me get the pop up wdw code too...
                Everyday's a school day, what grade are you in?

                Comment


                • #9
                  Re: Displaying multiple windows

                  Here...
                  Attached Files
                  Everyday's a school day, what grade are you in?

                  Comment


                  • #10
                    Re: Displaying multiple windows

                    try changing the window to 132 as default 1st entry and 80 as second.

                    jamie
                    All my answers were extracted from the "Big Dummy's Guide to the As400"
                    and I take no responsibility for any of them.

                    www.code400.com

                    Comment


                    • #11
                      Re: Displaying multiple windows

                      If your subfile window is not sensing what mode the display is in (24x80 or 27 x 132) then it will cause the existing screen to blank out if it attempts to display at a different size. (ie, if the main program is 27x132, and the subfile window is only set to 24x80, the main program screen will blank out when the subfile window is displayed.)

                      To keep it from doing this, your subfile window needs to sense the current mode of the display before it opens its display file and outputs the window. Once it retrieves the current display file size, it can set the window display file to the current size and then open the display file. You can check on how to do this here: http://provatosys.com/retrieve.html
                      Michael Catalani
                      IS Director, eCommerce & Web Development
                      Acceptance Insurance Corporation
                      www.AcceptanceInsurance.com
                      www.ProvatoSys.com

                      Comment


                      • #12
                        Re: Displaying multiple windows

                        yes what michael says
                        All my answers were extracted from the "Big Dummy's Guide to the As400"
                        and I take no responsibility for any of them.

                        www.code400.com

                        Comment


                        • #13
                          Re: Displaying multiple windows

                          Hi, this is a well known situation ... and I assume because IBM did not fix it yet they will not change it in future either.

                          The background disappears if several windows (for example match codes) are opened (and closed) without executing an EXTFMT of the subfile between the opens.
                          That means you open and select from window1. After the selection an EXTFMT on the subfile is executed (you pressed enter and redisplay your subfile). If you open the second window after, the background will not disappear.
                          ... but if you open the windows one after the other, that means select values for the first field and after for the second one, the background will disapear as soon as you open the second window.
                          ... neither ASSUME nor KEEP (nor anything else ... I've already tried all keywords and keyword combinations I could imagine) will solve the problem.

                          Birgitta

                          Comment


                          • #14
                            Re: Displaying multiple windows

                            Thank you jamief, Birgitta and Michael.
                            Everyday's a school day, what grade are you in?

                            Comment


                            • #15
                              Re: Displaying multiple windows

                              You can also look here ... http://forums.systeminetwork.com/isn...81&postcount=3
                              Regards

                              Kit
                              http://www.ecofitonline.com
                              DeskfIT - ChangefIT - XrefIT
                              ___________________________________
                              There are only 3 kinds of people -
                              Those that can count and those that can't.

                              Comment

                              Working...
                              X