Page History
...
Fields that use the *INOUTCOND field conditioning attribute to control when a field can or cannot be changed are not subject to the rules specified in this table.
...
Mode | Fields That Can Be Changed | Fields That Cannot Be Changed |
*DISPLAY | Those with *INPUT attribute | All others |
*CHANGE | All others | Those with *NOCHG attribute |
*ADD | All others | Those with *NOCHG attribute |
*DELETE | Those with *INPUT attribute | All others |
Note that when a list is initialized (with the INZ_LIST command), or has an entry added (with the ADD_ENTRY command) or updated (with the UPD_ENTRY command) the mode is "set" when the command is executed, NOT when the list is displayed.
For instance the commands:
SET_MODE TO(*DISPLAY)
ADD_ENTRY TO_LIST(#BROWSE)
or just
ADD_ENTRY TO_LIST(#BROWSE) WITH_MODE(*DISPLAY)
and then
SET_MODE TO(*CHANGE)
ADD_ENTRY TO_LIST(#BROWSE)
or just
ADD_ENTRY TO_LIST(#BROWSE) WITH_MODE(*CHANGE)
would cause the first entry in the list to be "protected" and the second entry in the list to be "input capable". This is because the mode of a list entry is "set" at the time the entry is added to (or updated into) the list, not at the time that the list is displayed.
...