Actions: Difference between revisions

165 bytes added ,  23 August 2023
m
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Stamp|2017-02-25|4.3.0|1.0.9}}
{{Stamp|2023-08-12|5.0|2.0}}
{{BannerMenu}}
{{PageTitle|Actions}}


An '''''Action''''' is a specialized trigger which is initiated by the pressing of a toolbar button while viewing a Library Entries list or an Entry View card; it will be executed in the background mode. Functions and objects that are available for triggers are also available for actions. Action scripts use the same security parameters as trigger scripts.
An '''''Action''''' is a specialized trigger which is initiated by the pressing of a toolbar button while viewing a Library Entries list or an Entry View card; it will be executed in the background mode. Functions and objects that are available for triggers are also available for actions. Action scripts use the same security parameters as trigger scripts.
Line 21: Line 23:
Action scripts can use the same objects and functions as trigger scripts. If the action is in the Library context, then it can use function ''lib()'' to get the current library. If the action is in the Entry context, then it can use function ''entry()'' to get the current entry.
Action scripts can use the same objects and functions as trigger scripts. If the action is in the Library context, then it can use function ''lib()'' to get the current library. If the action is in the Entry context, then it can use function ''entry()'' to get the current entry.


[[Category:Spec]]
For the Bulk Action script, the selected entries are available via ''selectedEntries()'' function.
 
[[Category:en]] [[Category:Spec]] [[Category:Sc]]