1 Context
The user interface of the toolbar is displayed directly above the object in the form of a button. We are now adding a toolbar so that we can edit the information of the objects within the grid in the same way as with the Ribbon Bar.
2 Result
3 Step by step guide
3.1 Create the menu structure
In the menu section (Design → Menus - Select the BuildOne Application):
- Select the top node of your application “MyOrderApplication”
- Select “New Entry” section in the dropdown the item type “Menu” and click on “Add as sublevel” and call it:
- “MenuName” -> “MyToolbar”
- “Menu Structure Code” ->”MyToolbar” and select “Save”
- Create a new entry for a Save button
- Select now your newly created “MyToolbar” menu and add an “Item” also by selecting it in the dropdown and clicking the button “Add as sublevel”
- Here you can now search for your Action “RibbonSaveFunction” that we created in the previous session
- Create a new entry for a Delete button
- Select again the “MyToolbar” menu and add an “Item” also by selecting it in the dropdown and clicking the button “Add as sublevel”
- Here you can now search for the Action “DeleteDB” which is an action that deletes the selected record
3.3 Add the toolbar to your screen
- Go back to the designer of your screen
- Search in the section “Library of Objects” for the “SimpleSwatToolbar” and drag and drop it on the “OrderGrid_<yourName>”
- Navigate to the “Flow View” and link the “SimpleSwatToolbar” to the object “OrderGrid_<yourName>”
- Choose the “Link type” -> “TableIO” and select “Save”
- Click on the “SimpleSwatToolbar” and search in the section “Attributes” for the attribute “Menu” and insert the value “MyToolbar”
- Search in the section “Attributes” for the attribute “Toolbar Type” and change the value to “Filled”
- Click on the 'ItemGrid_<yourName>' and check the attribute 'ENABLED'.
Menu structure code of your toolbar group
The buttons in the toolbars can be displayed with 3 different styles, try to experiment with them if you wish!
And again, there are various actions that are already defined in the standard. We can look at these in the SWAT framework and use them