Triggers: Difference between revisions

85 bytes added ,  6 October 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 426: Line 426:
Suppose a library contains a field called Phone containing a phone number.
Suppose a library contains a field called Phone containing a phone number.


<source lang="javascript" line>
<source lang="javascript">
i = intent("android.intent.action.DIAL")  // Create information exchange object Intent with the action of DIAL
i = intent("android.intent.action.DIAL")  // Create information exchange object Intent
i.data("tel:"+entry().field("Phone"))    // The data will be the phone number obtained from the field Phone
                                          // with the action of DIAL
i.data("tel:"+entry().field("Phone"))    // The data will be the phone number obtained
                                          // from the field Phone
i.send()                                  // Send the message
i.send()                                  // Send the message
</source>
</source>