Triggers: Difference between revisions

Jump to navigation Jump to search
822 bytes added ,  29 December 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 583: Line 583:


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.


==== JSContact Methods ====
==== JSContact Methods ====
Line 588: Line 590:
:; hasNext(): Returns TRUE if there is a next JSContact object, otherwise FALSE
:; hasNext(): Returns TRUE if there is a next JSContact object, otherwise FALSE


:; next(): Returns the next JSContact object, if there is one, otherwise null
:; 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 600: Line 602:
==== JSContact Properties ====
==== JSContact Properties ====


:; fullName: The full Name of this contact
:; fullName: The full name of this contact


:; phone: The primary phone number of this contact
:; phone: The primary phone number of this contact
Line 607: Line 609:


=== Object ''JSGeolocation'' ===
=== Object ''JSGeolocation'' ===
This object contains the information stored within a Location field and provides properties and methods for use in accessing and manipulating this information.
When an Entry object's field() method is called, if the Memento field type is Location, a JSGeolocation object is returned.
If the Location field contains multiple locations, use hasNext() and next() to retrieve them.


==== JSGeolocation Methods ====
==== JSGeolocation Methods ====


:; hasNext():  
:; hasNext(): Returns TRUE if there is a next JSGeolocation object, otherwise FALSE
 
:; next(): Returns the next JSGeolocation object, if there is one. Only valid after calling hasNext() and receiving a TRUE result.


==== JSGeolocation Properties ====
==== JSGeolocation Properties ====
:; lat: Latitude, as a Real
:; lng: Longitude, as a Real
:; address: Address for this Location


== Interaction with the System ==
== Interaction with the System ==

Navigation menu