A toolbar allows to customize the buttons and menus that are displayed when viewing tables or records in a dataset. The customization of toolbars can be performed in the data model via the 'Configuration' section.
Add a toolbar from the Toolbars section of the navigation pane, by clicking on the arrow located to the right of [ All elements ], then selecting the Create toolbar option. Follow the creation wizard to create a toolbar. A toolbar defines the following information:
Name | Toolbar's name. The name of the toolbar must be unique in the context of the data model. That is, it is not allowed to create several toolbars with the same name. |
Label and description | Internationalized labels and descriptions to be displayed to end users. |
Default template | Allows to create a toolbar with the structure of a default toolbar. |
Locations | Specifies the locations where the toolbar can be used in associated datasets. |
A toolbar can define the following elements:
Add one of these elements under a toolbar or to an existing element by clicking on the arrow located to the right of the existing element, and by selecting a creation option in the menu. Then, follow the creation wizard to create an element.
This type of element allows to associate an action to a button in a toolbar. The action will be triggered when the user clicks on the associated button in one of the toolbars. A Action button type element defines the following information:
Target | Defines if the service is executed in the current context or in a web component. A service executed in a web component has no access to the current selection, but it is possible to specify a selection and specific parameters. |
Service | Defines the service that will be executed when the user clicks on the button. It is possible to select a built-in service, or a user service defined in a module or in the current data model. If the 'Web component' target is selected, the service will have to be declared as available as a web component for toolbars. |
Modal size | Size of the modal window containing the web component. |
Resizable | Indicates if the modal window can be resized. |
Parameters | Service parameters. Those can be specified only if the target is set to 'Web component'. |
Label and description | Internationalized labels and descriptions to be displayed to end users. |
Layout | Defines how this element will be displayed in datasets using the toolbar. It is possible to display: the icon only, the text only, text with the icon to the left or text with the icon to the right. |
Icon | Icon to display. It is possible to use an icon to choose from a set of suggested icons, or to refer to an icon using a URL. |
Is highlighted | Indicates if the button should be highlighted by default. |
A Action button type element can only be created under a toolbar type element.
This type of element allows to define a menu that will be displayed when the user clicks on the associated button in a toolbar. An element of the Menu button type defines the following information:
Label and description | Internationalized labels and descriptions to be displayed to end users. |
Layout | Defines how this element will be displayed in datasets using the toolbar. It is possible to display: the icon only, the text only, text with the icon to the left or text with the icon to the right. |
Icon | Icon to display. It is possible to use an icon to choose from a set of suggested icons, or to refer to an icon using a URL. |
Is highlighted | Indicates if the button should be highlighted by default. |
An element of the Menu button type can only be created under an element of the toolbar type.
This type of element allows to insert a separator in the form of spacing between two elements of a toolbar.
An element of the Separator type can only be created under an element of the toolbar type.
This type of element allows to define a group of elements in a menu. An element of the Menu group type defines the following information:
Label and description | Internationalized labels and descriptions to be displayed to end users. |
Group type | Specifies the type of menu group to create: |
Service group name | Specifies an existing group of services to reuse. A group is declared in a module and can include other groups of services. All services contained in this group will be displayed to end users in associated datasets. |
Menu builder name | Specifies the predefined menu content to assign to this menu group: |
Excluded services | Indicates the services to exclude from the group of reused services. These services will not be displayed to end users in associated datasets. |
Excluded service groups | Indicates the groups to exclude from the group of services to reuse. Services in excluded groups will not be displayed to end users in associated datasets. |
Filtering policy | In case of "Smart filtering", services that are configured in direct access, i.e. via an action button or an action menu item, will be removed from the automatic generation of this group. |
An element of the Menu group type can only be created under the following elements:
Menu button
Sub menu item
This type of element allows to associate an action to a menu item in a toolbar. The action will be triggered when the user clicks on the corresponding item in a menu. An element of the Action menu item type defines the following information:
Label and description | Internationalized labels and descriptions to be displayed to end users. |
Target | Defines if the service is executed in the current context or in a web component. A service executed in a web component has no access to the current selection, but it is possible to specify a selection and specific parameters. |
Service | Defines the service that will be executed when the user clicks on the button. It is possible to select a built-in service, or a user service defined in a module or in the current data model. If the 'Web component' target is selected, the service will have to be declared as available as a web component for toolbars. |
Modal size | Size of the modal window containing the web component. |
Resizable | Indicates if the modal window can be resized. |
Parameters | Service parameters. Those can be specified only if the target is set to 'Web component'. |
An element of the Action menu item type can only be created under a Menu group type element.
This type of element allows to add a sub menu to a toolbar menu. Un Sub menu item defines the following information:
Label and description | Internationalized labels and descriptions to be displayed to end users. |
An element of the Sub menu item type can only be created under an element of the Menu group type.
All the elements of a toolbar can be deleted from it by using the arrow located to the right of the element to be deleted.
If an element containing other elements is deleted, then the deletion is recursively performed on all elements located below the deleted element.
To duplicate an element, click on the arrow located to the right of the element to duplicate. Specify the name and properties of the duplicated element. All the source element properties are duplicated.
The duplicated element is added on the same level than the original element, in the final position. When an element containing other elements is duplicated, all the sub-elements are duplicated with their properties.
In order to move an element, click on the arrow and select the moving option to be used.
To associate a toolbar with existing tables, click on the arrow located to the right of the toolbar and select the option Associate to tables. This service allows to set the toolbar has the default toolbar of several tables in one shot. To do so, specify the target locations of the toolbar and select the tables or complex data types, that define table properties, to be associated with the toolbar.
It is possible to export the toolbars defined in the model into an XML document. To do so, select the XML export option available in the Actions menu of the 'Toolbars' section. Follow the wizard to export the toolbars.
A selection of toolbars can be exported by selecting in the 'Toolbars' section the toolbars to be exported and then by selecting the XML export option available in the Actions menu. The toolbars can also be exported by using the data model export service. It can be found in the Data model 'Actions' menu in the navigation pane.
It is possible to import existing toolbars from an XML document. To do so, select the XML import option available in the Actions menu of the 'Toolbars' section. Then follow the wizard to import the toolbars.
The toolbars can also be imported by using the data model import service accessible via the Data model 'Actions' menu in the navigation pane.
User guide table of contents