ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Displaying multiple record formats ina window

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

  • Displaying multiple record formats ina window

    It's been so long since I have done this I can hardly remember how

    I need to design and display a window that contains 2 record formats within a window. One of them is a subfile control with the headings at the top and then a footer at the bottom with the command keys. I don't have any trouble displaying just the subfile within the window but how do I get the footer within the window as well.

  • #2
    Re: Displaying multiple record formats ina window

    If what I have been reading is correct I believe you need to create the footer record as a window, then have your windowed subfile reference the footer window. In your code you need to write the footer window then EXFMT the window subfile.
    Another possibility is use use the WDWTITLE keyword positioning the text to the bottom of the window.

    Comment


    • #3
      Re: Displaying multiple record formats ina window

      one of my footers:

      Code:
            A          R SFLFOOT                                          
            A*%%TS  SD  20010808  140558  QPGMRGLS    REL-V4R4M0  5769-PW1
            A                                      OVERLAY                
            A  90        MSG           50A  O 21 20                       
            A  90                                  DSPATR(RI)             
            A            MOREND        10A  O 21 71                       
            A                                 22  2'Options'              
            A                                      DSPATR(HI)             
            A                                      DSPATR(UL)             
            A                                 23 76'Roll'                 
            A                                      DSPATR(HI)   
            A                                 24  8'F03-EOJ'   
            A                                      DSPATR(HI)
      Best of Luck
      GLS
      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

      Comment


      • #4
        Re: Displaying multiple record formats ina window

        To add to DAG0000's suggestion, one of the record formats has to be defined with the window definition (WINDOW(x x x x)) and the other record format(s) have to reference the window record format (WINDOW(windowformat)).

        Comment


        • #5
          Re: Displaying multiple record formats ina window

          Originally posted by DAG0000 View Post
          If what I have been reading is correct I believe you need to create the footer record as a window, then have your windowed subfile reference the footer window. In your code you need to write the footer window then EXFMT the window subfile.
          I got that to work. I used to do this a lot but it's been a couple of years so I couldn' remember how I last did it

          Comment

          Working...
          X