Triggers: Difference between revisions

Jump to navigation Jump to search
63 bytes added ,  27 November 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Stamp|2016-11-16|4.0.0|1.0.6}}
{{Stamp|2016-11-27|4.1.0|1.0.6}}


A Trigger is a script that defines the processing of an entry whenever a particular kind of event takes place. Trigger scripts are written in '''[https://developer.mozilla.org/en-US/docs/web/JavaScript JavaScript]'''. When a trigger script is executed, it may perform actions like changing an existing entry, creating a new entry, executing an HTTP request, creating a file, performing data validation, etc.
A Trigger is a script that defines the processing of an entry whenever a particular kind of event takes place. Trigger scripts are written in '''[https://developer.mozilla.org/en-US/docs/web/JavaScript JavaScript]'''. When a trigger script is executed, it may perform actions like changing an existing entry, creating a new entry, executing an HTTP request, creating a file, performing data validation, etc.
Line 192: Line 192:
:; Argument: The name of the library to find
:; Argument: The name of the library to find


:; Result: [[#Object Library|'''''Library''''' object]] — the library identified by the argument ''name''
:; Result: [[#Object Library|'''''Library''''' object]] — the library identified by the argument ''name'', if found. Otherwise ''null''.


<br/>
<br/>
Line 212: Line 212:
: Search all entries by the Entry Name. The library must be set for unique Entry Names.
: Search all entries by the Entry Name. The library must be set for unique Entry Names.
:; Argument: '''name''' &mdash; the Entry Name field value
:; Argument: '''name''' &mdash; the Entry Name field value
:; Result: [[#Object Entry|'''''Entry''''' object]]
:; Result: [[#Object Entry|'''''Entry''''' object]], if found. Otherwise, ''null''.


===== create(values) =====
===== create(values) =====
Line 220: Line 220:


==== ''Library'' Properties ====
==== ''Library'' Properties ====
: '''Title''' &mdash; The name of the library
: '''title''' &mdash; The name of the library


<br/>
<br/>
Line 241: Line 241:


==== ''Entry'' Properties ====
==== ''Entry'' Properties ====
: '''Title''' &mdash; entry name
: '''title''' &mdash; entry name
: '''Description''' &mdash; entry description
: '''description''' &mdash; entry description
: '''Favorites''' &mdash; true, if the entry is in Favorites
: '''favorites''' &mdash; true, if the entry is in Favorites
: '''Deleted''' &mdash; true, if the record is deleted (it is in the Recycle Bin)
: '''deleted''' &mdash; true, if the record is deleted (it is in the Recycle Bin)
<br/>
<br/>


Navigation menu