Triggers: Difference between revisions

2 bytes removed ,  6 January 2017
mNo edit summary
Line 584: Line 584:
When an Entry object's field() method is called, if the Memento field type is Contact, a JSContact object is returned.
When an Entry object's field() method is called, if the Memento field type is Contact, a JSContact object is returned.


If the Contact field contains multiple contacts, use hasNext() and next() to retrieve them.
If the Contact field contains multiple contacts, use ''hasNext'' and ''next'' to retrieve them.


==== JSContact Methods ====
==== JSContact Methods ====
:; hasNext(): Returns TRUE if there is a next JSContact object, otherwise FALSE
:; next(): Returns the next JSContact object, if there is one — only valid after calling hasNext() and receiving a TRUE result


:; show(): Opens the Contacts app for this contact
:; show(): Opens the Contacts app for this contact
Line 607: Line 603:


:; email: The primary email address of this contact
:; email: The primary email address of this contact
:;hasNext: Returns TRUE if there is a next JSContact object, otherwise FALSE
:;next: Returns the next JSContact object, if there is one — only valid after calling hasNext() and receiving a TRUE result


=== Object ''JSGeolocation'' ===
=== Object ''JSGeolocation'' ===