Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Stamp|2016-11- | {{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''' — the Entry Name field value | :; Argument: '''name''' — 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''' — The name of the library | ||
<br/> | <br/> | ||
Line 241: | Line 241: | ||
==== ''Entry'' Properties ==== | ==== ''Entry'' Properties ==== | ||
: ''' | : '''title''' — entry name | ||
: ''' | : '''description''' — entry description | ||
: ''' | : '''favorites''' — true, if the entry is in Favorites | ||
: ''' | : '''deleted''' — true, if the record is deleted (it is in the Recycle Bin) | ||
<br/> | <br/> | ||