The object represents a new or saved record of a table in the database. It identifies a specific data row belonging to a datatable or tableview object.
Availability
The object is available only in specific execution contexts, or is created by a function provided by other objects
Pre-initialized in
Row added to a data table, Pre-save of data table row, Counter acquisition for a data table row, Post-save of data table row, Pre-move of data table row to recycle bin, Row restored from recycle bin, Pre-deletion of data table row, Post-deletion of data table row, Row action on a data table, Value changed in a data table row cell
table = database.getsql("SELECT * FROM customers WHERE nation ='italy'")
nrows = table.countrows()
rows = table.getrows()
for i = 1, nrows do
customername = rows[i].getvalue("name")
output.print(customername)
end
getvalue
Description
Retrieves the value of a specific field present within the datarow
Value Type
object
Format
object = datarow.getvalue(columnname)
Type
Method
Systems
Windows, Web, Android, IOS, Mac OS
Notes
If a column name that does not exist is entered, the method returns an empty string
Parameter
Value Type
Description
columnname
string
The name of the field from which to retrieve the value
Examples
value = datarow.getvalue("name")
save
Description
Saves the values present in the record inside the database
Value Type
boolean
Format
boolean = datarow.save()
Type
Method
Systems
Windows, Web, Android, IOS, Mac OS
Examples
bool = datarow.save()
setvalue
Description
Sets the value of a specific field present within the datarow