Revision as of 21:43, 6 September 2011 by Diggy (talk | contribs) (Initial)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Kexi/Handbook/Building Simple Databases/Designing Forms/Actions


An Action is a single activity isolated in the application, available for the user to execute. It can also be executed automatically as a reaction for a given event (e.g. after opening a form).

Assigning actions to form buttons

Many actions can be assigned to form button. The assigned action is executed after button is clicked.

To assign action:

  1. Switch to form's Design view if you have not done yet.
  2. Select the existing button widget by clicking on it or put a new button widget onto the form. If you inserted a new button, enter its title and press Enter key.
  3. Click the button widget with the right mouse button to display the context menu.
  4. From the context menu select Assign action... command.
  5. An Assigning Action to Command Button dialog window will appear presenting a list of available actions. One of the actions is selected if the widget already has action assigned. Otherwise the Action type drop down list has the No type item selected.
  6. From the Action type drop down list select Application item. Available application-wide actions will be listed.
  7. Select one of the actions on the list (e.g. Delete Row).
  8. Click the OK button or press the Enter key to accept your selection.

After switching to the form's data view you can try whether the action works. For example, if you assigned Delete Row action, clicking the button, the current database row will be deleted, similarly to executing Edit->Delete Row (Ctrl+Delete) menu command (depending on your settings you may be asked to confirm the removal).

* To remove an action assignment, select No type item from the Action type drop down list of the Assigning Action to Command Button dialog window.
  • Actions only work in the form's data view. Not every action's assignment is reasonable. For example, the Font... action is available in data view, but only if you have a widget selected in the Design view. If you make changes to the font settings the changes are applied to the text of that selected widget.

This page was last edited on 16 May 2014, at 06:51. Content is available under Creative Commons License SA 4.0 unless otherwise noted.