Logo

    Home

    Documentation

    Use Cases

    Training

    Applications

    Release Notes

    Toolbar

    Toolbar

    • Description
    • Styles available
    • How to use it
    • 1. Create a menu function
    • 2. Create a menu structure
    • 3. Add the toolbar to your screen
    • Attributes

    Description

    The toolbars are created in Build.One using the SwatToolbarobject. A SwatToolbar is a graphical control element in the form of a toolbar that can be added to a ScreenScreens.

    image

    Styles available

    Two styles are available for the toolbars, once with separated buttons that is recommended for a set of actions that are not related. And another one where all the buttons are grouped in a container that is meant to be used with set of actions that are closely related.

    These two styles can be set with the Attribute AttributeStyle . Using the values default and grouped

    default
    default toolbar
    grouped
    grouped toolbar

    How to use it

    1. Create a menu function

    To create a toolbar, you need to create a corresponding menu function. How to do this is explained on the following page. ActionsActions.

    Below is an example of a menu function for a save operation.

    image

    2. Create a menu structure

    To create a toolbar, you need to create a corresponding menu structure. How to do this is explained on the following page. Menu structureMenu structure

    Below is an example of a menu structure for a new toolbar in the menu structure

    image
    1. Start of the menu structure for an application.
    2. Group to organize an application.
    3. Group for all toolbars to be used in this application.
    4. Toolbar object. This object includes all relevant blocks for the toolbar and their associated buttons.
    5. Actual button in the toolbar. Here, the menu function for the button is defined, as shown in the above example.

    3. Add the toolbar to your screen

    1. To add the toolbar to the screen, search for "SimpleSwatToolbar" in the object catalog. Then, drag and drop it onto a specific panel or use it for the entire screen.
    2. Next, connect the toolbar object in the Flow Designer to the respective object using the "TableIO" link type.
    3. In the final step, populate the "ToolBarKey" attribute with the Menu Structure Code from the toolbar object in the Menu Structure. Refer to point 4 in the above image.
    icon
    To Find the Toolbarkey you can find it in the Menu details
    image

    Attributes

    Attribute
    Description
    Example/Values
    Toolbarkey
    Defines the menu structure of the toolbar.
    MyToolbarcode
    LabelDisplay
    Defines if labels are shown in the Toolbar
    Standard/Show/Hide
    AttributeStyle
    Change the style of the toolbar to separate buttons or one combined container
    Default, Grouped

    Back to DocumentationDocumentation

    Back to Home Page

    Logo