Create a Floating Action Button (FAB)
You can create a floating action button for grids to allow easy addition of new datasets.
Open Design menu > Menu + Action submenu > Menu Function tab.
Click +Neu to create a new function.
Fill in the fields as follows:
Function Name: LaunchCreateAdresseDialog Function Type: Akioma.Swat.Studio.Menu.Action Function Code: LaunchCreateAdresseDialog
Click Ok to save the new menu function and then close the window.
Switch from the Menu Function tab to the Menu Structure tab and select the desired and already existing menu structure.
In the Tree drop-down menu select Menu and click the Neue Unterposition button to create a submenu.
Enter the name ‘FAB Menus’ in the MenuName field and click save.
Select the ‘FAB Menus’ submenu and create another submenu.
Enter, for example, ‘AdresseCreateFab’ in the MenuName and the MenuStructureCode field and click save.
In the Tree drop-down menu select Item and click the Neue Unterposition button to create a Menu Item.
Enter, for example, the ‘CreateAdresse’ in the Label and the code field and click save.
Open Design menu > Screens submenu and select the screen in which you want to add the floating action button.
Select the grid in the Layout design or Preview window.
Browse the Attributes table for the attribute floatingActionButton and enter the MenuStructureCode ‘AdresseCreateFab’ in the Attribute Value field.
The floating action button is displayed when running a launch.