Scripting: Difference between revisions

From Memento Database Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Stamp|2016-11-04|4.0.0|1.0.6}}
{{Stamp|2017-01-13|4.2.1|1.0.7}}


''[[This page is a stub, with some tidbits. A more complete page is forthcoming.]]''
''[[This page is a stub, with some tidbits. A more complete page is forthcoming.]]''
Line 6: Line 6:
Scripting for the Calculation field type is described in '''[[Calculation field]]'''.
Scripting for the Calculation field type is described in '''[[Calculation field]]'''.


== Scripting Memento in JavaScript ==
Scripting in JavaScript is available in '''[[JavaScript field]]''' and '''[[Triggers]]'''.
Scripting in JavaScript is available in '''[[JavaScript field]]''' and '''[[Triggers]]'''.


== Scripting Memento in JavaScript ==
=== The '''[[JavaScript field]]''' type ===
'''[[TBD]]'''
 
=== The JavaScript field type ===
'''[[TBD]]'''
'''[[TBD]]'''


=== JavaScript scripting for Memento Triggers ===
=== JavaScript scripting for [[Triggers|'''Memento Triggers''']] ===
'''[[TBD]]'''
'''[[TBD]]'''



Revision as of 22:59, 13 January 2017

« Page as of 2017-01-13, editions Mobile 4.2.1, Desktop 1.0.7 »

This page is a stub, with some tidbits. A more complete page is forthcoming.

Native Memento Calculation scripting

Scripting for the Calculation field type is described in Calculation field.

Scripting Memento in JavaScript

Scripting in JavaScript is available in JavaScript field and Triggers.

The JavaScript field type

TBD

JavaScript scripting for Memento Triggers

TBD

moment.min.js — a possibly useful wrapper for JavaScript dates & times

See http://momentjs.com and its subordinate pages Guides and Docs.

Tidbit
To get the current date, use moment().toDate(). To get the current date & time, use moment().toDate().getTime().

TBD