Child pages
  • JSRecord

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Property SummaryReturns last occurred exception on this record (or null).Returns parent foundset of the record.

servoy sSummary12%30%58%height: 30px;3Methods SummaryReturns a JSDataSet with outstanding (not saved) changed data of this record.Returns the records datasource string.Returns an array with the primary key values of the record.Returns true if the current record has outstanding/changed data.Returns true or false if the record is being edited or not.Returns true if the current record is a new record or false otherwise.voidReverts the in memory outstanding (not saved) changes of the record.

propertyservoy sDetail2100%height:30px2Property Detailsexceptionname

exception

dessIndentReturns last occurred exception on this record (or null).ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow foundsetname

foundset

dessIndentReturns parent foundset of the record.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 

functionservoy sDetail2100%height:30px2Methods DetailsgetChangedDataname

getChangedData()

dessIndentReturns 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().ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow getDataSourcename

getDataSource()

dessIndentReturns the records datasource string.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
getPKsname

getPKs()

dessIndentReturns an array with the primary key values of the record.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
hasChangedDataname

hasChangedData()

dessIndentReturns true if the current record has outstanding/changed data.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
isEditingname

isEditing()

dessIndentReturns 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.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
isNewname

isNew()

dessIndentReturns true if the current record is a new record or false otherwise.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
revertChangesname

revertChanges()

dessIndentReverts the in memory outstanding (not saved) changes of the record.
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow