May 16, 2024 16:56 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
Property Summary
Exception
exception
Returns last occurred exception on this record (or null).
JSFoundSet
foundset
Returns parent foundset of the record.
JSRecordMarkers
recordMarkers
Returns the validation object if there where validation failures for this record
Can be set to null again if you checked the problems, will also be set to null when a save was succesful.
Methods Summary
JSDataSet
getChangedData()
Returns a JSDataSet with outstanding (not saved) changed data of this record.
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.
void
revertChanges()
Reverts the in memory outstanding (not saved) changes of the record.
Property Details
exception
Returns last occurred exception on this record (or null).
var exception = record.exception;
foundset
Returns parent foundset of the record.
var parent = record.foundset;
recordMarkers
Returns the validation object if there where validation failures for this record
Can be set to null again if you checked the problems, will also be set to null when a save was succesful.
var recordMarkers = record.recordMarkers;
Methods Details
getChangedData()
Returns a JSDataSet with outstanding (not saved) changed data of this record.
column1 is the column name, colum2 is the old data and column3 is the new data.
NOTE: To return an array of records with outstanding changed data, see the function foundset.getEditedRecords().
/** @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));
}
getPKs()
Returns an array with the primary key values of the record.
var pks = foundset.getSelectedRecord().getPKs() // also foundset.getRecord can be used
hasChangedData()
Returns true if the current record has outstanding/changed data.
var hasChanged = record.hasChangedData();
revertChanges()
Reverts the in memory outstanding (not saved) changes of the record.
var record= foundset.getSelectedRecord();
record.revertChanges();