DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.

Enter additional information related to this 'class' inside the {div} macro with 'id=description'



Property Summary
JSFoundSet
foundset
Returns parent foundset of the record.



Method Summary
String
getDataSource()
Returns the records datasource string.
Object[]
getPKs()
Returns an array with the primary key values of the record.
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

foundset

Returns parent foundset of the record.

Returns

JSFoundSet - The parent foundset of the record.

Sample

var parent = record.foundset;
 



Method Details

getDataSource

String
getDataSource
()
Returns the records datasource string.

Returns

String - The datasource string of this record.

Sample

var ds = record.getDataSource();
 

getPKs

Object[]
getPKs
()
Returns an array with the primary key values of the record.

Returns

Object[] - an Array with the pk values.

Sample

var pks = foundset.getSelectedRecord().getPKs() // also foundset.getRecord can be used
 

isEditing

Boolean
isEditing
()
Returns true or false if the record is being edited or not.

Returns

Boolean - a boolean when in edit.

Sample

var isEditing = foundset.getSelectedRecord().isEditing() // also foundset.getRecord can be used
 

isNew

Boolean
isNew
()
Returns true if the current record is a new record or false otherwise.

Returns

Boolean - true if the current record is a new record, false otherwise;

Sample

var isNew = foundset.getSelectedRecord().isNew();
 

revertChanges

void
revertChanges
()
Reverts the in memory outstanding (not saved) changes of the record.

Returns

void

Sample

var record= forms.customer.foundset.getSelectedRecord();
record.revertChanges();