Child pages
  • JSRecord

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Div
styledisplay: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.

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

Div
iddescription



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Row (tr)
Table Cell (td)
JSFoundSet
Table Cell (td)
foundset
Returns parent foundset of the record.



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
getDataSource()
Returns the records datasource string.
Table Row (tr)
Table Cell (td)
Object[]
Table Cell (td)
getPKs()
Returns an array with the primary key values of the record.
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
isEditing()
Returns true or false if the record is being edited or not.
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
isNew()
Returns true if the current record is a new record or false otherwise.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
revertChanges()
Reverts the in memory outstanding (not saved) changes of the record.



HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Details
Table Body (tbody)
idfoundset
Table Row (tr)
idname
Table Cell (td)

foundset

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns parent foundset of the record.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSFoundSet - The parent foundset of the record.
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var parent = record.foundset;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 



HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Details
Table Body (tbody)
idgetDataSource
Table Row (tr)
idname
Table Cell (td)

getDataSource

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
getDataSource
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the records datasource string.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String - The datasource string of this record.
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var ds = record.getDataSource();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetPKs
Table Row (tr)
idname
Table Cell (td)

getPKs

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Object[]
Span
stylefont-weight: bold;
getPKs
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns an array with the primary key values of the record.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Object[] - an Array with the pk values.
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var pks = foundset.getSelectedRecord().getPKs() // also foundset.getRecord can be used
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idisEditing
Table Row (tr)
idname
Table Cell (td)

isEditing

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
isEditing
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns true or false if the record is being edited or not.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Boolean - a boolean when in edit.
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var isEditing = foundset.getSelectedRecord().isEditing() // also foundset.getRecord can be used
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idisNew
Table Row (tr)
idname
Table Cell (td)

isNew

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
isNew
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns true if the current record is a new record or false otherwise.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Boolean - true if the current record is a new record, false otherwise;
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var isNew = foundset.getSelectedRecord().isNew();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idrevertChanges
Table Row (tr)
idname
Table Cell (td)

revertChanges

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
revertChanges
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Reverts the in memory outstanding (not saved) changes of the record.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var record= forms.customer.foundset.getSelectedRecord();
record.revertChanges();
Table Row (tr)
classlastDetailRow
Table Cell (td)