Child pages
  • JSRecord

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rev: 1381949650879

...

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSFoundSet
Table Cell (td)
#foundsetfoundset
Returns parent foundset of the record.

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

tbody
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getDataSourcegetDataSource()
Returns the records datasource string.
Table Row (tr)
Table Cell (td)
Object[]
Table Cell (td)
#getPKsgetPKs()
Returns an array with the primary key values of the record.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#isEditingisEditing()
Returns true or false if the record is being edited or not.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#isNewisNew()
Returns true if the current record is a new record or false otherwise.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#revertChangesrevertChanges()
Reverts the in memory outstanding (not saved) changes of the record.

HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
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
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
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)