Program
The object represents the program.
clienttype = program.type()
if clienttype == 1 then
output.print("Client windows")
else
output.print("Other client")
end
|
dismisspresentation |
|
|
Description |
Close a web window based on its identifier. |
|
Type Value |
|
|
Format |
program.dismisspresentation(identifier) |
|
Typology |
Metodo |
|
Systems |
|
|
Parametro |
Tipo Valore |
Description |
|
identifier |
string |
The identifier of the window to be closed. |
|
forcesync |
|
|
Description |
If the current database is a cloud, force synchronization with the server. |
|
Type Value |
|
|
Format |
program.forcesync() |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
program.forcesync() |
|
geocoding |
|
|
Description |
Given an address, the system returns the normalized address using the Google Maps service and its geographic coordinates. |
|
Type Value |
list |
|
Format |
list |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
address |
string |
The complete address to send |
|
Examples |
|
address = program.geocoding(`via genova 12,41012 Carpi Modena Italy`) |
|
geocodingreverse |
|
|
Description |
Convert a latitude and longitude into a real address using the Google Maps service. |
|
Type Value |
list |
|
Format |
list |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
lat |
double |
The latitude of the geographic coordinate. |
|
lng |
double |
The longitude of the geographic coordinate. |
|
Examples |
|
address = program.geocodingreverse(-1,-1) |
|
geolocation |
|
|
Description |
Only for mobile systems, it returns the GPS coordinates of the device. |
|
Type Value |
list |
|
Format |
list |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
coordinates = program.geolocation() |
|
getcarttable |
|
|
Description |
Retrieve the cart management table associated with a specific data table. |
|
Type Value |
carttable |
|
Format |
carttable = program.getcarttable(tablename) |
|
Typology |
Metodo |
|
Systems |
Web, Android, IOS |
|
Parametro |
Tipo Valore |
Description |
|
tablename |
string |
The name of the table associated with the cart. |
|
getownerid |
|
|
Description |
Returns the unique identifier of the user who owns the current database. |
|
Type Value |
single |
|
Format |
single = program.getownerid() |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
id = program.getownerid() |
|
getownerusername |
|
|
Description |
Returns the name of the user who owns the current database. |
|
Type Value |
string |
|
Format |
string = program.getownerusername() |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
username = program.getownerusername() |
|
getparam |
|
|
Description |
Retrieve a global program value based on a key. |
|
Type Value |
object |
|
Format |
value = program.getparam(key) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
key |
string |
The key to value. |
|
getstringuserid |
|
|
Description |
Returns the unique identifier of the current user in string format. |
|
Type Value |
string |
|
Format |
string = program.getstringuserid() |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
stringid = program.getstringuserid() |
|
getusercategory |
|
|
Description |
Returns the bitwise format of the current user`s category. |
|
Type Value |
double |
|
Format |
double = program.getusercategory() |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
category = program.getusercategory() |
|
getuserid |
|
|
Description |
Returns the unique identifier of the current user. |
|
Type Value |
integer |
|
Format |
integer = program.getuserid() |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
id = program.getuserid() |
|
getusername |
|
|
Description |
Returns the email or name of the current user. |
|
Type Value |
string |
|
Format |
string = program.getusername() |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
username = program.getusername() |
|
insertcart |
|
|
Description |
For mobile versions, it inserts a record reference inside the cart for order creation. |
|
Type Value |
|
|
Format |
program.insertcart(tablename, gguid, gguidvariant, qta) |
|
Typology |
Metodo |
|
Systems |
Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
gguid |
string |
The unique identifier of the record to be inserted into the cart. |
|
gguidvariant |
string |
The unique identifier of the possible sub-variant of the record to be inserted into the cart. |
|
qta |
|