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

Description

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 menu definition from the collection by it params identification key.
  • Update user menus in the collection.
  • Replace current user menu with user menu from the collection.

Object Model

Remarks

To use the service:

  1. Connect to a valid company.
  2. Call the CompanyService, which is the main DI service that you must call before using any other service.
  3. Call the method GetBusinessService for the required service.
  4. Create an empty data structure related to the required service.
    - or-
    You can create a data structure from an XML file or XML string.
  5. Set the required properties of the specified data structure.
  6. Call the required service method.

To display the form in the application:

  1. Select Main Menu--User Menu Tab

Example

See Also

SAP® B1 DI-API C# definition

public class UserMenuServiceClass : IUserMenuService, UserMenuService { public extern UserMenuServiceClass(); public virtual extern UserMenuItems GetCurrentUserMenu(); public virtual extern object GetDataInterface( UserMenuServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern UserMenuItems GetUserMenu( UserMenuParams pIUserMenuParams); public virtual extern void UpdateCurrentUserMenu( UserMenuItems pIUserMenuItems); public virtual extern void UpdateUserMenu( UserMenuParams pIUserMenuParams, UserMenuItems pIUserMenuItems); }

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


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