Difference between revisions of "Custom Form Actions"
imported>Aeric |
imported>Aeric |
||
Line 1: | Line 1: | ||
Custom actions are displayed as buttons the user can click when displaying data records. | Custom actions are displayed as buttons the user can click when displaying data records. | ||
__TOC__ | __TOC__ | ||
Line 24: | Line 22: | ||
=== Add an Action === | === Add an Action === | ||
To add an action: | |||
# Click the '''Add Action''' button | # Click the '''Add Action''' button | ||
# Fill in the Action settings | # Fill in the Action settings | ||
Line 31: | Line 28: | ||
=== Edit an Action === | === Edit an Action === | ||
To edit an action: | |||
# Click the title of the action | # Click the title of the action | ||
# Click the '''[Edit]''' button | # Click the '''[Edit]''' button | ||
Line 39: | Line 35: | ||
=== Delete an Action === | === Delete an Action === | ||
To delete an action: | |||
# Click the title of the action | # Click the title of the action | ||
# Click the '''[Delete]''' button | # Click the '''[Delete]''' button |
Revision as of 21:15, 17 April 2013
Custom actions are displayed as buttons the user can click when displaying data records.
About Actions
An Action can execute any of the following:
- A page which is a standard JSP (JavaServer Page) page with custom user interface elements or an independent tab
- JavaScript that uses AJAX and REST to interact with the platform
The action can run on a single record, on multiple records (via More Actions), or both.
Single Record Actions
For a single-record action, the user visits the record and then invokes one of the action button(s) in the heading bar. (The buttons they see depend on the actions that have been implemented and the user's permissions.)
Multiple Record Actions
For multiple-record actions, the user selects records in a View, and then uses the More Actions dropdown to invoke the desired action.
Learn More
Working with Actions
Add an Action
To add an action:
- Click the Add Action button
- Fill in the Action settings
- Click [Save]
Edit an Action
To edit an action:
- Click the title of the action
- Click the [Edit] button
- Modify the Action settings.
- Click [Save]
Delete an Action
To delete an action:
- Click the title of the action
- Click the [Delete] button
Action Settings
Action Information section
- Provide basic information:
- Name
- Unique name for the action
- Use alphanumeric characters and underscores
- Title
- Field display label
- Type
- Select the type of action:
- Invoke Page
- Execute JavaScript (single-record action only)
- If Invoke Page was selected, select it from the list
- Select the invocation point:
- Single Record: The action works on a single record
- Group Action: The action works on a group of records selected in a View
- Both: The action works on both single records and groups of records
- Note: The Group Action and Both options are not present if the action type is Execute JavaScript.
- Optionally, unclick the Enabled checkbox to disable the action
- Optionally, click the Requires Record Selection during Group Operation checkbox (this option appears only when Group Action is selected as the invocation point)
- If Execute JavaScript was selected, enter the JavaScript
- Tip: Use the Template Variable Tool to get available Template Variables
Packaging Options Section
Choose whether or not allow an installer to disable the action.
Available Roles section
Select the user Roles which can execute the action. The action button appears only for users in those roles.
Considerations
- If Template Variables are used in the JavaScript code:
- The Template Variable will not be replaced if the Action is invoked from a Group Action.
- The Template Variable will be replaced if the Action is invoked from a Single Record
Requires Record Selection during Group Operation
The Requires Record Selection during Group Operation option defines the type of Group Action to create.
- If checked, the Group Action requires that a record is selected in order to execute the action
- If not checked, the Group Action can execute when no records are selected