{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[JSDataSet]{td}{td}[#getChangedData]\()
Returns a JSDataSet with outstanding (not saved) changed data of this record.{td}{tr}{tbody}{tbody}{tr}{td}Object[]{td}{td}[#getPKs]\()
Returns an array with the primary key values of the record.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isEditing]\()
Returns true or false if the record is being edited or not.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#rollbackChanges]\()
If this record exists in underlying datasource it will do a re-query to fetch the latest data from the datasource.{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=8463D7D8-46B5-4326-8356-3B314072DDE5}{tr:id=name}{td}h6.getChangedData{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSDataSet]{span}{span:id=iets|style=float: left; font-weight: bold;}getChangedData{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_des|text=|trigger=button}{sub-section}{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_des|trigger=none|class=sIndent}Returns a JSDataSet with outstanding (not saved) changed data of this record.
NOTE: To return an array of records with outstanding changed data, see the function databaseManager.getEditedRecords().{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_ret|text=|trigger=button}{sub-section}{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_ret|trigger=none|class=sIndent}[JSDataSet] -- a JSDataSet with the changed data of this record.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_see|text=|trigger=button}{sub-section}{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_see|text=|trigger=button}{sub-section}{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_sam|text=|trigger=button}{sub-section}{sub-section:8463D7D8-46B5-4326-8356-3B314072DDE5_sam|class=sIndent|trigger=none}{code:language=javascript}
Div
style
display:none
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.
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().
Table Row (tr)
id
ret
Table Cell (td)
Returns
Div
class
sIndent
JSDataSet - a JSDataSet with the changed data of this record.
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
/** @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));
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E522D635-9D95-4BAC-8032-70523E1AE299}{tr:id=name}{td}h6.getPKs{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}Object[]{span}{span:id=iets|style=float: left; font-weight: bold;}getPKs{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_des|text=|trigger=button}{sub-section}{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_des|trigger=none|class=sIndent}Returns an array with the primary key values of the record.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_ret|text=|trigger=button}{sub-section}{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_ret|trigger=none|class=sIndent}Object[] -- an Array with the pk values.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_see|text=|trigger=button}{sub-section}{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_see|text=|trigger=button}{sub-section}{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_sam|text=|trigger=button}{sub-section}{sub-section:E522D635-9D95-4BAC-8032-70523E1AE299_sam|class=sIndent|trigger=none}{code:language=javascript}
var pks = foundset.getSelectedRecord().getPKs() // also foundset.getRecord can be used
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=90397A39-A671-480F-924F-247C29D0B4FB}{tr:id=name}{td}h6.isEditing{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isEditing{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_des|text=|trigger=button}{sub-section}{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_des|trigger=none|class=sIndent}Returns true or false if the record is being edited or not.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_ret|text=|trigger=button}{sub-section}{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_ret|trigger=none|class=sIndent}[Boolean] -- a boolean when in edit.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_see|text=|trigger=button}{sub-section}{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_see|text=|trigger=button}{sub-section}{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_sam|text=|trigger=button}{sub-section}{sub-section:90397A39-A671-480F-924F-247C29D0B4FB_sam|class=sIndent|trigger=none}{code:language=javascript}
var isEditing = foundset.getSelectedRecord().isEditing() // also foundset.getRecord can be used
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=08966F38-59E5-4B7E-B768-9FE7C563442A}{tr:id=name}{td}h6.rollbackChanges{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}rollbackChanges{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_des|text=|trigger=button}{sub-section}{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_des|trigger=none|class=sIndent}If this record exists in underlying datasource it will do a re-query to fetch the latest data from the datasource.
NOTE: If you use transactions then it will be the data of your last update of this record in the transaction,
not the latest committed data of that record in the datasource.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_ret|text=|trigger=button}{sub-section}{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_see|text=|trigger=button}{sub-section}{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_see|text=|trigger=button}{sub-section}{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_sam|text=|trigger=button}{sub-section}{sub-section:08966F38-59E5-4B7E-B768-9FE7C563442A_sam|class=sIndent|trigger=none}{code:language=javascript}