Removing Menu Items
- Last UpdatedFeb 08, 2023
- 1 minute read
The APPMENU object can also be used to remove menu fields from an application. The method .remove(!fieldName is STRING) hides the field with unique field name !fieldName.
The following commands can be used to remove the field named removeField from the menu menuName in the general application.
!menu = object APPMENU('menuName')
!menu.remove('removeField')
!!appMenuCntrl.addMenu(!menu)