createRecord()

Previous Next

See Also

Syntax

 createRecord(dsName,copyValues,beforeSelectedRow)

 

Parameter(s)

· dsName [String]
· copyValues [Boolean, Optional: false]
· beforeSelectedRow [Boolean, Optional: true]

 

Description

This function creates a new record in data source dsName, with default values. createRecord() is executed under a 'New' button. It retrieves the default values by executing getDSByAlias(..). afterCreateRow fills in the default values, or creates an empty field, in a new row in the named data source.

 

The parameter 'copyValues' takes the data of the current selected record and copies it into the new record, without the primary key values. The parameter 'beforeSelectedRow' sets the position of the new record.

 

Related function: deleteRecord()