Protecting a Form Tab

A form tab can be protected in the program, preventing user access to that tab when certain conditions are met. A form tab can be protected (disabled) by moving the value E@FOLDTABPRO to the control flag field for the form tab.

C                   EVAL      F4AF@OPTNST    = E@FOLDTABPRO 

A form tab can be unprotected (enabled) by moving the value E@FOLDTABRES to the control flag field for the form tab.

C                   EVAL      F4AF@OPTNST    = E@FOLDTABRES

Form Tab Protection Considerations

  • The program should not position to a field or return a field value on a protected form tab.

  • The program logic should not flag all form tabs as protected at any one time.

  • Application program logic should not assume that a tab remains at the same protected/unprotected value that was last set by the application. Applications must protect the tab again when the transaction returns.

  • Form tabs that are defined as secured in Environment security are automatically protected. For more information on Environment security, see Lawson Administration: Resources and Security.