|
Example:
This command cause a display panel to be created so that the field #SALARY only appears on the screen panel when the department number is 462 (accounting department) or the application group is HOFF (Head Office):
DEF_COND NAME(*AUTSAL) COND('(#DEPT = 462) *OR (#GROUP = HOFF)')
DISPLAY FIELDS(#A #B (#SALARY *AUTSAL) #C #D #E #F)
However, the commands cause a display panel to be created so that the field #SALARY is input capable when the department number is 462 (accounting department) or the application group is HOFF (Head Office). In all other cases field SALARY will appear, but it will be protected from input (ie: change) by the user:
DEF_COND NAME(*CHGSAL) COND('(#DEPT = 462) *OR (#GROUP = HOFF)')
DISPLAY FIELDS(#A #B (#SALARY *CHGSAL *IOCOND) #C #D #E #F)