Difference between revisions of "Custom Form Actions"
From AgileApps Support Wiki
imported>Aeric Β |
imported>Aeric Β |
||
(48 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
''' | '''[[File:GearIcon.png]] > Objects > {object} > Custom Form Actions | ||
Custom actions | Custom actions are displayed in '''Actions''' list in the sidebar, when the user is viewing a record. | ||
__TOC__ | __TOC__ | ||
==About Actions== | ==About Actions== | ||
An Action can | An Action can invoke either: Β | ||
:* A [[Pages|page]] which is a standard JSP (JavaServer Page) page with custom user interface elements or an independent tab | |||
* A [[Pages|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 | ||
* JavaScript that uses [[AJAX and REST]] to interact with the platform | |||
==Working with Actions== | |||
=== Add an Action === | |||
Β | To add an action: | ||
Β | |||
= | |||
Β | |||
Β | |||
== Add an Action == | |||
# Click the '''Add Action''' button | # 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=== | ||
:;Name:Unique name for the action | |||
::Use alphanumeric characters and underscores | |||
:;Title:Field display label | |||
:;Type:Select the type of action: | |||
::* Invoke Page | |||
:::* Select the page from the list | |||
::* Execute JavaScript (single-record action only) | |||
:'''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. | |||
--> | |||
:'''Enabled -''' Uncheck this box to disable the action. | |||
<!--:[[#About Requires Record Selection during Group Operation|Requires Record Selection during Group Operation]] checkbox | |||
::This option appears only when ''Group Action'' is selected as the invocation point) | |||
--> | |||
: '''JavaScript''' | |||
:: This section appears if ''Execute JavaScript'' was selected. Use it to enter the [[JavaScript]]. | |||
{{Note|To run the JavaScript in the LongJump UI and the legacy AgileApps UI, enter the script in the Legacy UI Script tab. To run the JavaScript in the New AgileApps UI, enter the script in the New UI Script tab.}} | |||
:: Use the [[Template Variable Tool]] that appears under it to get available [[Template Variables]] | |||
<!-- | |||
===Packaging Options Section=== | |||
Choose whether or not allow an installer to disable the action. | |||
--> | |||
===Available to Roles section=== | |||
Select the user [[Roles]] which can execute the action. The action button appears only for users in those roles. | |||
<!-- | |||
====Considerations==== | |||
:*If [[Template Variable]]s 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. Β | 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 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 | :*If not checked, the Group Action can execute when no records are selected | ||
Β | --> | ||
<noinclude> | |||
Β | |||
Β | |||
Β | |||
Β | |||
Β | |||
[[Category:Object Aspects]] | |||
</noinclude> |
Latest revision as of 06:35, 28 August 2018
> Objects > {object} > Custom Form Actions
Custom actions are displayed in Actions list in the sidebar, when the user is viewing a record.
About Actions
An Action can invoke either:
- 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
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
- Name
- Unique name for the action
- Use alphanumeric characters and underscores
- Title
- Field display label
- Type
- Select the type of action:
- Invoke Page
- Select the page from the list
- Execute JavaScript (single-record action only)
- Invocation Point:
- Single Record: The action works on a single record
- Enabled - Uncheck this box to disable the action.
- JavaScript
- This section appears if Execute JavaScript was selected. Use it to enter the JavaScript.
- Use the Template Variable Tool that appears under it to get available Template Variables
Available to Roles section
Select the user Roles which can execute the action. The action button appears only for users in those roles.