1 Context:
Next, we will combine the function we just created with a menu structure for our application. Build.One applications are organized in so-called menu structures. This means that we have a kind of folder structure for our objects, in which we organize all our functions, actions, and objects.
2 Result:
3 Step by step guide:
3.1 Create the menu structure
- Navigate to the section âDesignâ -> âMenusâ
- In the top section search for the checkbox âShow root menusâ and select it
- Select the âBuildOne Applicationâ to open the menu section.
- Select your created group âMyOrderApplicationâ and, in the ribbon section âNew Entryâ, make sure âMenuâ is selected in the dropdown menu and click âAdd as sublevelâ.
- Fill in a âMenuNameâ -> âCreateNewOrder_<yourName>â
- Fill in a âMenu Structure Codeâ -> âCreateNewOrder_<yourName>â
- Select âSaveâ to save your folder structure
- Now select your folder CreateNewOrder_<yourName> and in the dropdown in the section âNew Entryâ select the âItemâ and click on âAdd as sublevelâ
- In the search field âActionâ search for your created function âCreateANewOrderâ from task 150
- Fill in a âLabelâ -> âCreate a New Orderâ
- Fill in a âIDâ -> âOrderButton_<yourName>â
- Select âSaveâ to save your button.
This will be the menu for our Floating Action Button
This is the actual button we will declare now.
3.2 Add the function to your gird
- Navigate back to the screen designer of your âOrderOverview_<yourName>â
- Select the âOrderGridâ and search in the âAttributesâ for the attribute âFloatingActionButtonâ and search for âCreateNewOrder_<yourName>â to select the menu that you created in the previous step
- Select âSaveâ and than âLaunchâ your screen
Now you can see that a floating button will appear in the bottom right corner
By clicking the button, it will launch the screen for the add operation of a specific data set. It will launch the screen we have defined in the function.
4 Explanation:
By using the internal identifier "Menu Structure Code", we can reuse the button we just created throughout the entire application. Simply include this code at the desired location to use the button with the assigned function. This is also the principle behind Build.One. Functions and objects are defined in a central location and then reused.