<< Click to Display Table of Contents >> Navigation: »No topics above this level« Actions |
Actions are used to perform operations on client and server sides. Usually actions are displayed as toolbar buttons above table or listview.
Actions are linked to data class (not to control) and consists of the following (optional) parts:
•Form - set of input controls displayed in a dialog window
•Client script - javascript code executed in a browser
•Server script - pascal code executed on server
•State script - javascript code defining action state (enabled/disabled)
To open action editor, switch to design mode and click on action button.
Action is linked to Operation which defines access level (view, add, edit, delete). When user have no rights to execute an action, it will be hidden.
Action may have submenu defined by dictionary. In this case action code will be executed when submenu items are clicked, with additinal parameter (dictionary id) passed to script in a submenuId variable.
Actions with Operation set to Add, Edit and Delete may have no explicit code. By default they will show dialog form and perform corresponding operation on database table defined by control dataclass.