Below you will find examples of creating menu items that perform different actions.
Example 1 - Open web page
In this example, a menu item is created in the main menu to open a web page using the control type "ExternalCommand".- Select Tools/Menus/Main menu/Edit main menu
- Press + (plus sign) where you want to add a menu item
- Fill in the right part of the image as shown and described below and select the Save to tape button.
Command text: Enter the desired name for the menu item here ControlType: ExternalCommand Line number: Specify where the menu item should be placed. 1=Top Arguments: Here you specify the arguments as shown in the example above and also below. C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://www.uniconta.com
Example 2 - Importing a file
In this example, a menu item is created in the main menu to import a file to the debtor directory (table = DebtorClient) using the control type "ImportControl".- Select Tools/Menus/Main menu/Edit main menu
- Press + (plus sign) where you want to add a menu item
- Fill in the right part of the image as shown and described below and select the Save to tape button.
Caption: Enter the desired name for the menu item ControlType: ImportControl Arguments: Enter the arguments here: Table: Enter the name of the table to be loaded into. File: Enter the location and name of the file to be loaded. Positionfile: Enter the location and name of the Definition file that was created earlier in the example. In the example, the argument string looks like this: Table=DebtorClient;positionfile=C:\Users\Crispin.Francis.SEVENN\Desktop\DebtorClient (Customers)Position.txt;file=C:\Users\Crispin.Francis.SEVENN\Desktop\debtor.csvBe sure to separate the arguments with semicolons.
Example 3 - Show dashboard
In this example, a menu item is created in the main menu to display a dashboard using the control type "DashBoardViewerPage".- Select Tools/Menus/Main menu/Edit main menu
- Press + (plus sign) where you want to add a menu item
- Fill in the right part of the image as shown and described below and select the Save button on the ribbon.
Caption: Enter the desired name for the menu item ControlType: Form Control: DashboardViewerPage Arguments: Name of the dashboard to be displayed
Example 4 - Open accounting journal
In this example, a menu item is created in the main menu to open an accounting drawer without showing the accounting drawer overview. This is done using the control type "Form". TIP! To find the name of the shape you want to open, open the shape (screen) and press F12.- Select Tools/Menus/Main menu/Edit main menu
- Press + (plus sign) where you want to add a menu item
- Fill in the right part of the image as shown and described below and select the Save to tape button.
Command text: Enter the desired name for the menu item here ControlType: Form Control: Enter the name of the form, e.g. GL_DailyJournalLine Arguments: <argument>=<choice> e.g. Journal=Day, to open the draft with id = 'Day'.