Mar 28, 2024 17:19 Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Supported Clients SampleSupported Clients
SmartClient
WebClient
NGClient
MobileClient
Property Summary
Exception
exception
Returns last occurred exception on this record (or null).
JSFoundSet
foundset
Returns parent foundset of the record.
Methods Summary
JSDataSet
getChangedData()
Returns a JSDataSet with outstanding (not saved) changed data of this record.
String
getDataSource()
Returns the records datasource string.
Array
getPKs()
Returns an array with the primary key values of the record.
Boolean
hasChangedData()
Returns true if the current record has outstanding/changed data.
Boolean
isEditing()
Returns true or false if the record is being edited or not.
Boolean
isNew()
Returns true if the current record is a new record or false otherwise.
void
revertChanges()
Reverts the in memory outstanding (not saved) changes of the record.
Property Details
exception
var exception = record.exception;
foundset
var parent = record.foundset;
Methods Details
getChangedData()
/** @type {JSDataSet} */
var dataset = record.getChangedData()
for( var i = 1 ; i <= dataset.getMaxRowIndex() ; i++ )
{
application.output(dataset.getValue(i,1) +' '+ dataset.getValue(i,2) +' '+ dataset.getValue(i,3));
}
getDataSource()
var ds = record.getDataSource();
getPKs()
var pks = foundset.getSelectedRecord().getPKs() // also foundset.getRecord can be used
hasChangedData()
var hasChanged = record.hasChangedData();
isEditing()
var isEditing = foundset.getSelectedRecord().isEditing() // also foundset.getRecord can be used
isNew()
var isNew = foundset.getSelectedRecord().isNew();
revertChanges()
var record= %%prefix%%foundset.getSelectedRecord();
record.revertChanges();