Page History
Divcache | ||
---|---|---|
| DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
...
id | description |
---|
...
padding | 0px |
---|---|
width | 80px |
...
Table Row (tr) | |||||
---|---|---|---|---|---|
| |||||
|
...
Table Cell (td) |
---|
ServoyException |
...
Table Cell (td) |
---|
JSFoundSet |
...
| |||||||||||||
...
...
padding | 0px |
---|---|
width | 80px |
...
Table Row (tr) | |||||
---|---|---|---|---|---|
| |||||
|
...
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 |
...
...
...
...
...
padding | 0px |
---|---|
width | 100% |
...
...
colspan | 1 |
---|
...
...
...
...
exception |
...
...
Returns last occurred exception on this record (or null). |
...
...
Returns |
...
...
class | sIndent |
---|
...
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | foundset |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
...
id | ret |
---|
...
Supported Clients Sample foundsetReturns parent foundset of the record. Returns |
...
Supported Clients |
...
class | lastDetailRow |
---|
...
HTML Table | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Colgroup Tag | Column | | ||||||||||||
|
Table Row (tr) | |||||
---|---|---|---|---|---|
| |||||
|
id | getChangedData |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
id | ret |
---|
class | sIndent |
---|
Sample
Div | |||||
---|---|---|---|---|---|
| |||||
|
recordMarkersReturns 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 Cell (td) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Table Body (tbody) | ||||||||||||||
|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
id | ret |
---|
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) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Supported Clients
Sample
getDataSource()
Returns the records datasource string.
Returns
Supported Clients
id | ret |
---|
class | sIndent |
---|
Sample
Div | |||||
---|---|---|---|---|---|
| |||||
|
class | lastDetailRow |
---|
id | getPKs |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
class | sIndent |
---|
getPKs()
Returns an array with the primary key values of the record.
Returns
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
class | lastDetailRow |
---|
id | hasChangedData |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
id | ret |
---|
class | sIndent |
---|
Supported Clients
Sample
hasChangedData()
Returns true if the current record has outstanding/changed data.
Returns
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
class | lastDetailRow |
---|
id | isEditing |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
class | lastDetailRow |
---|
id | isNew |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
id | ret |
---|
Supported Clients
Sample
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
Supported Clients
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
class | lastDetailRow |
---|
Sample
Div | |||||
---|---|---|---|---|---|
| |||||
|
class | lastDetailRow |
---|
id | revertChanges |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
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