Skip to main content

[archive] Disabling a Menu Item

  • November 25, 2008
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 25 November 2008]

Hi,
Hopefully this is a simple question.
How do you programmatically disable a menu choice? Using Modify doesn't seem to work: "modify MI-XX, enabled = 0" gives me the following error message-
Undefined data item: MI-XX

THanks

3 replies

  • Author
  • Rocketeer
  • 19312 replies
  • November 25, 2008

[Migrated content. Thread originally posted on 25 November 2008]

Hi,
Hopefully this is a simple question.
How do you programmatically disable a menu choice? Using Modify doesn't seem to work: "modify MI-XX, enabled = 0" gives me the following error message-
Undefined data item: MI-XX

THanks
To disable a menu item:

CALL "W$MENU" USING WMENU-DISABLE,
Your-Menu-Handle,
Your-MenuItem-ID.

To enable a menu item:

CALL "W$MENU" USING WMENU-ENABLE,
Your-Menu-Handle,
Your-MenuItem-ID.

  • Author
  • Rocketeer
  • 19312 replies
  • December 5, 2008

[Migrated content. Thread originally posted on 25 November 2008]

Hi,
Hopefully this is a simple question.
How do you programmatically disable a menu choice? Using Modify doesn't seem to work: "modify MI-XX, enabled = 0" gives me the following error message-
Undefined data item: MI-XX

THanks
In addition to the comment above, if you are trying to enable or disable a menu category, you will have to use the following command

call "W$MENU" using WMENU-SHOW, your-menu-handle.

Otherwise the update to the menu will not show on the screen until another action causes it to refresh.

  • Author
  • Rocketeer
  • 19312 replies
  • October 14, 2011

[Migrated content. Thread originally posted on 25 November 2008]

Hi,
Hopefully this is a simple question.
How do you programmatically disable a menu choice? Using Modify doesn't seem to work: "modify MI-XX, enabled = 0" gives me the following error message-
Undefined data item: MI-XX

THanks
[archive] MNoe originally wrote:
In addition to the comment above, if you are trying to enable or disable a menu category, you will have to use the following command

call "W$MENU" using WMENU-SHOW, your-menu-handle.

Otherwise the update to the menu will not show on the screen until another action causes it to refresh.


I AM DISABLING A SUBMENU BUT NOTHING IS HAPPENING IN MY MENU.

CALL "W$MENU" USING WMENU-DISABLE,EL-MENU-HANDLE,W-B9-TMP3-A4

EL-MENU-HANDLE IS MY MENU HANDLE
W-B9-TMP3-A4 IS MY MENU ID