Changes

Jump to navigation Jump to search
m
Line 64: Line 64:  
| [[Index:DatabaseLinks|Database links?]]
 
| [[Index:DatabaseLinks|Database links?]]
 
|}
 
|}
 +
 +
=== Scripting examples ===
 +
 +
var w ="https://wa.me/phone_number"
 +
var i = intent("android.intent.action.VIEW")
 +
i.date(w)
 +
i.send()
 +
 +
The difficulty may be in concatenating https://wa.me/ to the contact number, which is achieved with three variables:
 +
 +
var w1 = "https://wa.me/"
 +
var t = entry().field ("Phone")
 +
var w = w1 + t;
 +
 +
'''Example'''
 +
var name = entry().field("Name")
 +
 +
// Now you will need one more variable to concatenate with the previous ones:
 +
var d="?text="
 +
 +
// which results:
 +
 +
var w = w1 + t + d // respect this order for the sake of nomenclature
 +
 +
// The data now follows:
 +
 +
// var w = w1 + t + d + name
 +
 +
// Line breaks, if necessary in view of the data to be sent, are achieved with \n to insert into a variable and then join.
 +
 +
var ml = "\n"
 +
var w = w1 + t + d + name + ml
    
== The Memento application ''Database'' layer ==
 
== The Memento application ''Database'' layer ==

Navigation menu