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
Command Summary
HTML Table
id
classservoy sSummary
tbody
Colgroup Tag
Column
padding0px
width80px
Column
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Event Summary
tbody
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#onHideonHide
The method that is triggered when another form is being activated.
tbody
Table Row (tr)
Table Cell (td)

Table Cell (td)
#onLoadonLoad
The method that is triggered when a form is loaded/reloaded from the repository; used to alter elements, set globals, hide toolbars,
etc; onShow method can also be assigned.
tbody
Table Row (tr)
Table Cell (td)

Table Cell (td)
#onRecordSelectiononRecordSelection
The method that is triggered each time a record is selected.
Table Row (tr)
Table Cell (td)

Table Cell (td)
#onShowonShow
The method that is triggered EVERY TIME the form is displayed; an argument must be passed to the method if this is the first time the form is displayed.

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

tbody
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#dataSourcedataSource
The names of the database server and table that this form is linked to.
Table Body (tbody)tr
Table Cell (td)
String
Table Cell (td)
deprecated
Gets the deprecate info for this element
tbody
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#encapsulationencapsulation
The encapsulation mode for the form (see JSForm constants for encapsulation mode constants).
of this persist.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#namename
The name of the form.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#navigatornavigator
The navigator (previously named "controller")
that is used to control/navigate to the formis a form that usually handles navigation in application.

column
HTML Table
idcommand
classservoy sDetail
Colgroup Tag
padding0px
width100%
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Command Details
HTML Table
idevent
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Event Details
Table Body (tbody)
idonHide-JSEvent
Table Row (tr)
idname
Table Cell (td)
onHide
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The method that is triggered when another form is being activated.
NOTE: If the onHide method returns false, the form can be prevented from hiding.
For example, when using onHide with showFormInDialog, the form will not close by clicking the dialog close box (X).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{JSEvent} event - the event that triggered the action
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idonLoad-JSEvent
Table Row (tr)
idname
Table Cell (td)
onLoad
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The method that is triggered when a form is loaded/reloaded from the repository; used to alter elements, set globals, hide toolbars,
etc; onShow method can also be assigned.
NOTE: onShow should be used to access current foundset dataproviders; onLoad cannot be used because the foundset data is not loaded until after the form is loaded.
Also calls to loadRecords() should be done in the onShow method and not in the onLoad method
If you call loadRecords() in the onShow method, you may want to set the namedFoundSet property of the form to 'empty' to prevent the first default form query.
NOTE: the onLoad event bubbles down, meaning that the onLoad is first fired on the parent then on a tab in a tabpanel (and in tab of that tab panels if you are 3 deep)
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{JSEvent} event - the event that triggered the action
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idonRecordSelection-JSEvent
Table Row (tr)
idname
Table Cell (td)
onRecordSelection
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The method that is triggered each time a record is selected.
If a form is in List view or Special table view - when the user clicks on it.
In Record view - after the user navigates to another record using the slider or clicks up or down for next/previous record.
NOTE: Data and Servoy tag values are returned when the onRecordSelection method is executed.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{JSEvent} event - the event that triggered the action
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idonShow-Boolean_JSEvent
Table Row (tr)
idname
Table Cell (td)
onShow
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

The method that is triggered EVERY TIME the form is displayed; an argument must be passed to the method if this is the first time the form is displayed.

NOTE: onShow can be used to access current foundset dataproviders; onLoad cannot be used because the foundset data is not loaded until after the form is loaded.

NOTE: the onShow event bubbles down, meaning that the onShow event of a form displayed in a tabPanel is fired after the onShow event of the parent.

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Boolean} firstShow - form is shown first time after load
{JSEvent} event - the event that triggered the action
Table Row (tr)
classlastDetailRow
Table Cell (td)


HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Property Details
Table Body (tbody)
iddataSource
Table Row (tr)
idname
Table Cell (td)
dataSource
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The names of the database server and table that this form is linked to.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
iddeprecated
Table Row (tr)
idname
Table Cell (td)
deprecated
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets the deprecate info for this element
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String - the deprecate info for this element or null if it is not deprecated
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idencapsulation
Table Row (tr)
idname
Table Cell (td)
encapsulation
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

The encapsulation mode

for the form (see JSForm constants for encapsulation mode constants).

of this persist. The following can be used/checked:

- Public (not a separate option - if none of the below options are selected)
- Hide in scripting; Module Scope - not available in scripting from any other context except the form itself. Available in designer for the same module.
- Module Scope - available in both scripting and designer but only in the same module.
- Hide Dataproviders (checked by default)
- Hide Foundset (checked by default)
- Hide Controller (checked by default)
- Hide Elements (checked by default)

Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number - the encapsulation mode/level for of the formpersist.
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idname
Table Row (tr)
idname
Table Cell (td)
name
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The name of the form.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idnavigator
Table Row (tr)
idname
Table Cell (td)
navigator
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The navigator (previously named "controller")
that is used to control/navigate to the form. The navigator is shown at
the left or at the right side of the form, depending on the page orientation. The following options are available:
-none- - no navigator is assigned.
DEFAULT - the Servoy default navigator is assigned.
IGNORE - the navigator last assigned to a previous form.
Custom - a custom navigator based on a selected formis a form that usually handles navigation in application. It is displayed on left side of the screen. Can also have value SM_DEFAULTS.NONE (no navigator) or SM_DEFAULTS.IGNORE (reuse current form navigator).
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
classlastDetailRow
Table Cell (td)