Description
CreateDialogs are used to create any kind of records. They are normal objects of type SwatDialog, but are invoked in a special way to create records directly in the database. This screen is created during the creation with the Quick Builder - Automated Generation of B1 Objects .
In the standard SWAT template the CreateDialog contains a DSO, a From and a toolbar to save and cancel. A CreateDialog could be called from a GridPanelHeader or a FAB (see here for details).
).
How to use it
- First of all you need to design your CreateDialog as a type dialog, see here Screen
- Than you have to create a menu entry and a menu function to call it
- In your Actions , you have to use the following settings:
- Action Type:
LAUNCH
- Action Parameter: The code of your CreateDialog
- Action Options:
{'autoAdd': true, 'foreignKeyProvider': '$ []'}
- This is the important part, that the creation of records works out of the box
- The created menu can be used in a panel header and also as a FAB function
Back to Documentation
Back to Home Page