ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Clearing subfile record from screen

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

  • Clearing subfile record from screen

    Hello,

    I have a screen that comprises of;

    REC01 (SFL)
    CTL01 (SFLCTL(REC01))
    MSG01 (simple record to show the function keys available to the user)

    If I remove the final record from my subfile and reload it, the screen doesn't update to show it's no longer there (any other records; it updates fine) - from what I've read on here and elsewhere, this is because I'm using OVERLAY and can't turn SFLDSP on due to having no records.

    If I remove the OVERLAY keyword it seems to work but my MSG01 record doesn't show at the bottom...

    Quick over view of processing;
    Turn off SFL inds
    Turn on SFLCLR ind, write CTL01, turn off SFLCLR ind
    If RRN = 0 after loading SFL, set SFLDSPCTL ind on
    Write MSG01
    EXFMT CTL01


    What can I do? Writing an empty record is ugly as is "no records found" - is there no way to just reset the screen and have my MSG01 show?

    Cheers,
    Ryan

  • #2
    I have misunderstood what writing a record meant; I thought they meant to the subfile but I've finally found a simple subfile example online and they use a dsp record within the screen that goes over where the subfile sits... Doh.

    Comment


    • RDKells
      RDKells commented
      Editing a comment
      Been at this for ages as well and it was that simple... sigh.
Working...
X