📚 SAP Business One SDK Help

ActivateMenuItem Method
See Also 

Description

Simulates a user click on a menu item.

Syntax

Visual Basic
Public Sub ActivateMenuItem( _
   ByVal MenuUID As String _
) 

Parameters

MenuUID
The unique ID of the item to activate

Remarks

We recommend using this method instead of MenuItem.Activate because:

  • The MenuUID parameter does not change and does not require you to follow the item path of the Activate method, which is subject to changes.
  • This method is more efficient.

The UI API throws an exception when trying to activate system menu items that are disabled by the system.

See Also