Triggers: Difference between revisions

33 bytes added ,  10 November 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 495: Line 495:
Suppose a library contains a field called Phone containing a phone number.
Suppose a library contains a field called Phone containing a phone number.


:   '''Trigger script:'''
:<small>'''Trigger script:'''</small>
<source lang="javascript">
<source lang="javascript">
i = intent("android.intent.action.DIAL"); // Create information exchange object Intent
i = intent("android.intent.action.DIAL"); // Create information exchange object Intent
Line 508: Line 508:
The phone number will be obtained from the field Phone and the text of the message will be obtained from the fields ContactName and Notes.
The phone number will be obtained from the field Phone and the text of the message will be obtained from the fields ContactName and Notes.


:   '''Trigger script:'''
:<small>'''Trigger script:'''</small>
<source lang="javascript">
<source lang="javascript">
msg = "Dear, " +
msg = "Dear, " +
Line 523: Line 523:
Suppose a library contains the time and name of an appointment.
Suppose a library contains the time and name of an appointment.


:   '''Trigger script:'''
:<small>'''Trigger script:'''</small>
<source lang="javascript">
<source lang="javascript">
i = intent("android.intent.action.INSERT");      // Create Intent object
i = intent("android.intent.action.INSERT");      // Create Intent object