User Level
Business Administrator with Menu administrative access
User LevelBusiness Administrator with Menu administrative access SyntaxAdd MenuTo define a menu from within MQL use the Add Menu command. Syntax
You cannot have both a command and a menu with the same name.
Label ClauseThis clause specifies the label to appear in the application in which the menu is assigned. For example, many desktop applications have a File menu. Href ClauseThis clause is used to provide link data to the JSP. The Href link is evaluated to bring up another page. Many menus will not have an Href value at all. However, menus designed for the “tree” menus require an Href because the root node of the tree causes a new page to be displayed when clicked. The Href string generally includes a fully-qualified JSP filename and parameters, which can contain embedded macros and expressions for mapping to database schema. For more information, see MQL Concepts: Using Macros and Expressions in Configurable Components. The syntax is:
Alt ClauseThis clause is used to define text that is displayed until any image associated with the menu is displayed and also as “mouse over text.” The syntax is:
For example, you could use the following for a Tools menu:
Command ClauseThis clause is used to specify existing commands to be added to the menu you are creating. The commands will be displayed in the order in which they are added. Separate items with a comma. The syntax is:
For more information, see Add Command. Setting ClauseThis clause is used to provide any name/value pairs that the menu needs. They can be used by JSP code, but not by hrefs on the Link tab. For more information, see MQL Concepts: Using Macros and Expressions in Configurable Components. The syntax is:
For example, an image setting with the image name can be specified to display when the menu is used in a toolbar:
History Clause
The
Copy MenuAfter a menu is defined, you can clone the definition with the Copy Menu command. Cloning a menu definition requires Business Administrator privileges, except that you can copy a menu definition to your own context from a group, role or association in which you are defined. SyntaxThis command lets you duplicate defining clauses with the option to change the value of clause arguments:
History Clause
The
Modify MenuUse the Modify Menu command to add or remove defining clauses and change the value of clause arguments. Syntax
Each modification clause is related to the arguments that define the menu. To change the value of one of the defining clauses or add a new one, use the Modify clause that corresponds to the desired change. When modifying a menu, you can make the changes from a script or while working interactively with MQL.
Order Clause
The
modify menu MyMenu add command C3 order command C3 3; Another example is given below showing the before and after effect of ordering.
To make this change you would have to issue the following command: modify menu MyMenu order command C1 2 order command C2 3; Delete MenuIf a menu is no longer required, you can delete it using the Delete Menu command.
Searches the list of defined menus. If the name is found, that menu is deleted. If the name is not found, an error message is displayed. For example, to delete the menu named “Toolbar” enter the following:
After this command is processed, the menu is deleted and you receive an MQL prompt for another command. |