ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Protecting an entire rcdfmt

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

  • Protecting an entire rcdfmt

    I have a DSPF that has a bunch of input fields. In my program, I want the users to key into the input fields and then, when they press ENTER, have it display the same record format again only with the input fields disabled (display only, no keying permitted) for verification purposes. Is there a keyword or another way to "protect" all the fields in the rcdfmt without having to change them to DSPATR(PR) for each one. One alternative is to make an identical RCDFMT with all the fields output only and display that. I was hoping there was a way to do this with a record level keyword or something similar.

    Any ideas?

  • #2
    Yes, use the PROTECT keyword in a different record format level and overlay the 1st screen.

    Code:
    A          R PROTECT1                                           
    A                                      CF03
    A                                      PROTECT                  
    A                                      OVERLAY
    Code:
    Write SCREEN1 ;  
    ExFmt PROTECT1 ;
    Ringer

    Comment

    Working...
    X