Dataform
The object represents a temporary form for retrieving information from the user.
|
addfielddate |
|
|
Description |
Add a field for entering a date. |
|
Type Value |
|
|
Format |
dataform.addfielddate(caption, tag, defaultvalue) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
caption |
string |
It represents the field label. |
|
defaultvalue |
object |
The default value to be set during the creation of the field. |
|
tag |
string |
It represents the unique identifier of the field to retrieve or set its value. |
|
Examples |
|
dataform.addfielddate(`Start Date`,`start`,utility.getnow()) |
|
addfieldinteger |
|
|
Description |
Add a field for entering an integer number. |
|
Type Value |
|
|
Format |
dataform.addfieldinteger(caption, tag, defaultvalue) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
caption |
string |
It represents the field label. |
|
defaultvalue |
object |
The default value to be set during the creation of the field. |
|
tag |
string |
It represents the unique identifier of the field to retrieve or set its value. |
|
Examples |
|
dataform.addfieldinteger(`Numerber of Day`,`numberday`,1) |
|
addfieldlist |
|
|
Description |
Add a field for selecting a value from a defined list. |
|
Type Value |
|
|
Format |
dataform.addfieldlist(caption, tag, values, defaultvalue) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
caption |
string |
It represents the field label. |
|
defaultvalue |
object |
The default value to be set during the creation of the field. |
|
tag |
string |
It represents the unique identifier of the field to retrieve or set its value. |
|
values |
list |
The strings that will populate the list. |
|
Examples |
|
dataform.addfieldlist(`Select Day`,`selectday`,{`Monday`,`Tuesday`,`Wednesday`},`Monday`) |
|
addfieldnumber |
|
|
Description |
Add a field for entering a number with decimals. |
|
Type Value |
|
|
Format |
dataform.addfieldnumber(caption, tag, defaultvalue) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
caption |
string |
It represents the field label. |
|
defaultvalue |
object |
The default value to be set during the creation of the field. |
|
tag |
string |
It represents the unique identifier of the field to retrieve or set its value. |
|
Examples |
|
dataform.addfieldnumber(`Quantity`,`qty`,1.5) |
|
addfieldtext |
|
|
Description |
Add a field for text input. |
|
Type Value |
|
|
Format |
dataform.addfieldtext(caption, tag, defaultvalue) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
caption |
string |
It represents the field label. |
|
defaultvalue |
object |
The default value to be set during the creation of the field. |
|
tag |
string |
It represents the unique identifier of the field to retrieve or set its value. |
|
Examples |
|
dataform.addfieldtext(`Customer name`,`name`,`Bob`) |
|
closewithx |
|
|
Description |
Indicate if the dataform has been closed with the x. |
|
Type Value |
boolean |
|
Format |
boolean = dataform.closewithx |
|
Typology |
Proprietà |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
getvalue |
|
|
Description |
Retrieve a value |
|
Type Value |
object |
|
Format |
object = dataform.getvalue(tag) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
tag |
string |
It represents the unique identifier of the field from which the value will be retrieved. |
|
Examples |
|
value = database.getvalue(`name`) |
|
setheight |
|
|
Description |
Set the height of the database in pixels. |
|
Type Value |
|
|
Format |
dataform.setheight(height) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
height |
integer |
It represents the value of the dataform height. |
|
Examples |
|
dataform.setheight(300) |
|
settitle |
|
|
Description |
Set the title of the dataform. |
|
Type Value |
|
|
Format |
dataform.settitle(title) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
title |
string |
The title of the data form |
|
Examples |
|
dataform.settitle(`Select date`) |
|
setvalue |
|
|
Description |
Set the value of a field in the dataform. |
|
Type Value |
|
|
Format |
dataform.setvalue(tag, value) |
|
Typology |
|