Page History
Divcache | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class | servoy sSummary |
Colgroup Tag | |||||
---|---|---|---|---|---|
|
Table Head (thead) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Table Cell (td) |
---|
ServoyException |
styleindex | display:none |
---|
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'
id | description |
---|
true | |
refresh | 100d |
---|---|
showRefresh | true |
id | doc |
title | Refresh page |
showDate | true |
retry | Enable |
Table Cell (td) |
---|
JSFoundSet |
Colgroup Tag | |||||
---|---|---|---|---|---|
|
Table Head (thead) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Table Cell (td) |
---|
JSDataSet |
Table Cell (td) |
---|
String |
Table Cell (td) |
---|
Object[] |
Table Cell (td) |
---|
Boolean |
Table Cell (td) |
---|
Boolean |
Table Cell (td) |
---|
Boolean |
Table Cell (td) |
---|
void |
Col |
---|
exception
Returns last occurred exception on this record (or null).
Returns
Supported Clients
Table Row (tr) | ||
---|---|---|
| ||
|
id | foundset |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
id | ret |
---|
Returns
class | sIndent |
---|
Sample
Div | |||||
---|---|---|---|---|---|
| |||||
|
foundset
Returns parent foundset of the record.
Returns
id | sam |
---|
Colgroup Tag | |||||||
---|---|---|---|---|---|---|---|
|
Table Head (thead) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
id | getChangedData |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
id | ret |
---|
Returns
class | sIndent |
---|
Supported Clients
Sample
Div | |||||
---|---|---|---|---|---|
| |||||
|
Table Row (tr) | ||
---|---|---|
| ||
|
id | function |
---|---|
class | servoy sDetail |
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 successful.
Returns
Supported Clients
Sample
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
id | ret |
---|
Returns
class | sIndent |
---|
createMarkers()
Creates and returns a new validation object for this record, which allows for markers to be used outside the validation flow.
Will overwrite the current markers if present.
Can be set to null again if you checked the problems, will also be set to null when a save was successful.
Returns
Supported Clients
Sample
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 databaseManager.getEditedRecords().
Returns
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Table Row (tr) | ||
---|---|---|
| ||
|
id | getDataSource |
---|
id | ret |
---|
Returns
class | sIndent |
---|
Supported Clients
Sample
getDataSource()
Returns the records datasource string.
Returns
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Table Row (tr) | ||
---|---|---|
| ||
|
id | getPKs |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Returns
class | sIndent |
---|
Supported Clients
Sample
getPKs()
Returns an array with the primary key values of the record.
Returns
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Table Row (tr) | ||
---|---|---|
| ||
|
id | hasChangedData |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
id | ret |
---|
Supported Clients
Sample
hasChangedData()
Returns true if the current record has outstanding/changed data.
Returns
Supported Clients
Returns
class | sIndent |
---|
Sample
Div | |||||
---|---|---|---|---|---|
| |||||
|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Body (tbody) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
id | isNew |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
id | ret |
---|
isEditing()
Returns true or false if the record is being edited or not.
This will not check if the record doesn't really have any changes, it just returns the edit state.
So this can return true but databaseManager.getEditedRecord() will not return this record because that
call will check if the record has really any changed values compared to the stored database values.
Record can be in edit mode without changes when some field is focused (so edit is started) but no changes are done yet
or when changes were done in such a way that record data is the same as database data.
Returns
Supported Clients
Sample
isNew()
Returns true if the current record is a new record or false otherwise. New record means not saved to database.
Returns
id | sam |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
id | revertChanges |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
class | lastDetailRow |
---|
Supported Clients
Sample
Div | |||||
---|---|---|---|---|---|
| |||||
|
isRelatedFoundSetLoaded(relationName)
Returns true or false if the related foundset is already loaded. Will not load the related foundset.
Parameters
Returns
Supported Clients
Sample
revertChanges()
Reverts the in memory outstanding (not saved) changes of the record.
Supported Clients
Sample