There are three types of menus in Anveo Client Suite: Menus in Anveo Pages Main Menus and Menu Templates. All of these types of menus mainly have the same properties, except that menu templates cannot be invoked directly. In addition, the properties of menus in Anveo Pages are specially addressed below.
You can create a new main menu from the Main Menus page in the setup of the Anveo Client Suite in Microsoft Dynamics NAV 2018.
Identifier of the Main Menu.
Defines if the entry is of type Main Menu or Menu Template.
The Menu Type should be set to Anveo Mobile App.
Irrelevant. For the Anveo Mobile App the size of the
Main Menu depends on the screen size of mobile device.
Defines the color theme of the menu.
Script that is executed when opening the menu.
Script that is executed when reloading the menu.
Script that is executed when pressing the sync button in the menu.
Script that is executed when closing the menu before logging out.
You can add menu items or edit existing menu items with one click on the Edit button. You can export or import menus as an XML file via the functions Export selected main menus and Import main menus. If you want to import a menu and that menu already exists, the menu will not be overwritten.
Page Element Menu
Each Main Menu consist of multiple Menu Elements defining how the tiles on the menu will look like. The tiles have the following attributes:
Text shown on tile. The text can be setup in multiple languages via the […] button.
Defines a Page that will be accessed when pressing the tile.
Defines an Action that will be performed when pressing the tile.
If neither Linked Anveo Page nor Action Code are defined the Menu Element will be displayed as a headline.
Defines what icon is displayed on the tile (read more about icons here).
Definition of text color on the tile.
Definition of the color of the tile.
Via the functions Up, Down, Left and Right you can set the order and the indentation of the menu items.
Changes made to the main menu are not visible in the client until the session has been restarted (for example, by reloading the website in the browser) or synchronization in the Anveo Mobile App.
Menu items without a linked Anveo Page, a customtable relation or a function code are not visible in the client. The same applies for menu items which refer to unpublished Anveo Pages or to Anveo Pages for which you do not have sufficient rights (find more information about access rights here).
If you leave the description of the menu item blank and indicate a linked Anveo Page, the description of the Anveo Page together with all translations is inherited to the menu item automatically.
In addition to creating individual entries within a menu you can create a template for menus and insert it into Anveo Pages. This way you save time and do not have to recreate menus you use frequently in Anveo Pages. You also have the possibility to use a menu template within a menu template so that you can set it up faster, although you cannot do this using templates with the same code.
You can edit all menu templates within the main menu in Microsoft Dynamics NAV 2018 via the page Menu Templates. You can also export or import menu templates as an XML file via the page. If you want to import a menu template and that template already exists, it will not be overwritten.
Special Properties Of Menus On Anveo Pages
Unlike main menus, menus on Anveo Pages have the properties Close Anveo Page after action and Line choice required.
Forces the user to choose an element on a list of Anveo Page Elements to enable the user to proceed. This is necessary for example to delete lines.
In Anveo Mobile App, the Menu Elements are displayed in different places depending on whether line selection is required. On the top right you can find the menu elements without line selection, which does not need a record to proceed – such as inserting a new record. Record-related menu items are accessed by pressing a line. Since pressing a record in Anveo Mobile App can also be used for other actions, the action code OPENLINEMENU() must be set in the field Short Press Action or Long Press Action of the Anveo Page Element (find more information here).