biuan SAP® BUSINESS ONE SDK
DTW Others / MultiLanguageTranslations
API User Menu Service / Update User Menu

Description

Replace a User Menu definition (UserMenuItems), identified by it UserMenuParams with a new User menu definition (UserMenuItems).

Syntax

Visual Basic
Public Sub UpdateUserMenu( _
   ByVal pIUserMenuParams As UserMenuParams, _
   ByVal pIUserMenuItems As UserMenuItems _
) 

Parameters

pIUserMenuParams

Identification key (UserMenuParams) of the new menu definition.

pIUserMenuItems

The new UserMenuItems data collection that defines the new menu.

Example

Update the user menu of user 2(doris) with the menu of user 1 (manager)
UpdateUserMenu (Visual Basic)
Dim oUserMenuItems As UserMenuItems Dim oSourceUserMenuParams As UserMenuParams Dim oDestUserMenuParams As UserMenuParams 'get new User Menu Params oSourceUserMenuParams = oUserMenuService.GetDataInterface(UserMenuServiceDataInterfaces.umsdiUserMenuParams) 'set the user id(manager=1) oSourceUserMenuParams.UserID = 1 'get User Menu Params oDestUserMenuParams = oUserMenuService.GetDataInterface(UserMenuServiceDataInterfaces.umsdiUserMenuParams) 'set the user id(doris=2) oDestUserMenuParams.UserID = 2 'get Menu Items of the user 1 (manager) oUserMenuItems = oUserMenuService.GetUserMenu(oSourceUserMenuParams) 'update the user menu of user 2(doris) with the menu of user 1 (manager) oUserMenuService.UpdateUserMenu(oDestUserMenuParams, oUserMenuItems)

See Also

Related information


User Menu Params UserMenuParams Object· Table: CUMI
The UserMenuParams specifies the identification key (UserID) for which the UserMenuService is related. Source table: CUMI.
   Parent: User Menu Service UserMenuService Service· Table: CUMI

User Menu Service Data Interfaces UserMenuServiceDataInterfaces Enumeration
UserMenuService data interfaces.
   Parent: User Menu Service UserMenuService Service· Table: CUMI

User Menu Service UserMenuService Service· Table: CUMI
UserMenuService manages the user menu. Source table: CUMI. The service maintains a collection of user menus, each identified by a specific value of UserMenuParams. It enables the user to: Get current user menu definition. Get any user...



SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates