Show TOC

Accessing Menu InformationLocate this document in the navigation structure

After a successful execution of the load() method, you can access the user's menu using oUser.getMenu().getEntries().

In the array that is returned, each entry represents either a folder or an application. You can check this using oEntry.isFolder().

Folders as well as applications have an identifier (oEntry.getId()) and a language-dependent text (oEntry.getText()).

For folders, you can get the array of children using oEntry.getChildren().

For applications, you can get the application type using oEntry.getType() and the URL using oEntry.getUrl().

http://help.sap.com/javadocs/ui-services/shell-api/symbols/sap.ui2.shell.Menu.html

For more information, see the JSDocs on Class sap.ui2.shell.Menu.