SB+ Tech Tip
Problem:
How can I disable the action bar on a form when using SB+ in GUI mode?
Solution:
To disable the action bar on the form completely, use the
following paragraph line:
LOCAL STATUS ; STATUS = SETATTR(@FORM, "menu_disabled", 1)
To enable it again:
LOCAL STATUS ; STATUS = SETATTR(@FORM, "menu_disabled", 0)
You can also disable individual action bar options by specifying the full name of the menu options in "disabled_set" list. For example, following paragraph will disable Enquiry and Report options in HIRE.DET process (SBDEMO account):
LOCAL STATUS, DSET
* DISABLE Reports and Enquiry menu using unique option names as
assigned in GUI driver
DSET = 'P*M:REPORTMENU*':@VM:'P*M:ENQMENU*'
STATUS = SETATTR(@FORM, "disabled_set", DSET)
To enable them again, set "disabled_set" to Null
LOCAL STATUS
STATUS = SETATTR(@FORM, "disabled_set", '')
As posted in the U2 New Flash Email Newsletter.