Child pages
  • Variable

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Divcache
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)
String
Table Cell (td)comment
styleindexdisplay: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.

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable
id

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Property SummaryProperty for setting and getting the jsdoc text (comment) of the script variable. Table Row (tr)

Table Cell (td)
String
Table Cell (td)defaultValue
The default value of the variable. Table Row (tr)
Table Cell (td)
String
Table Cell (td)name
Table Row (tr)
Table Cell (td)
String
Table Cell (td)scopeName
The name of the variable. Table Cell (td)variableType
The name of the scope. Table Row (tr)
Table Cell (td)
Number
The type of the variable.

HTML Table

propertyclass Colgroup Tag Colcolspanservoy sDetail2width100%

Col
Table Head (thead) Table Row (tr)styleheight:30px; Table Head (th)colspan2Property Details Table Body (tbody)ididcomment Table Row (tr)nametd

comment

Table Row (tr)id

des Table Cell (td) DivclasssIndentProperty for setting and getting the jsdoc text (comment) of the script variable. Table Row (tr)idret

Table Cell (td)

Returns

divsIndentclients

class

Supported Clients

sIndent
String - the value of the jsdoc text (comment) of the script variable
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
iddefaultValue
Table Row (tr)
idname
Table Cell (td)

defaultValue

Table Row (tr)
iddes
Table Cell (td) Div
classsIndent
SmartClient,WebClient,NGClient,MobileClientsam

Sample

sIdentjavascript
lastDetailRow 
defaultValuename

defaultValue

dessIndentThe default value of the variable.
It is interpreted as a JS expression. For form variables ,setting this property requires the form instances to be destroyed (history.remove("formName")).
If you want to use a default value for a newly created variable create the variable using the 3 parameter version newVariable(name,type,defaultValue). For INTEGER variables it can be an integer constant, like 10 for example.
For NUMBER variables it can be a real constant, like 22.41. For DATETIME
variables it can be "now", or a JS expression like "new Date()". For TEXT
Table Row (tr)id variables it can be any string surrounded with quotes, like "'some text'".tdret

Returns

divsIndentclients

class Table Body (tbody)

idname
Table Row (tr)
idname
Table Cell (td)

name

Table Row (tr)
iddes
Table Cell (td) Div
classsIndent

Supported Clients

sIndent
String
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
SmartClient,WebClient,NGClient,MobileClientsam

Sample

sIdentjavascript
lastDetailRow 
namename

name

dessIndentThe name of the variable.
Table Row (tr)idtdret

Returns

divsIndentclients

class

Table Row (tr)
idname
Table Cell (td)

scopeName

Table Row (tr)
iddes
Table Cell (td) Div
classsIndent

Supported Clients

sIndent
String
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idscopeName
SmartClient,WebClient,NGClient,MobileClientsam

Sample

sIdentjavascript
lastDetailRow 
scopeNamename

scopeName

dessIndentThe name of the scope.
Table Row (tr)idret

Table Cell (td)

Returns

divsIndentclients

class Table Row (tr)

iddes
Table Cell (td) Div
classsIndent

Supported Clients

sIndent
String
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idvariableType
Table Row (tr)
idname
Table Cell (td)

variableType

SmartClient,WebClient,NGClient,MobileClientsam

Sample

sIdentjavascript
lastDetailRow 
variableTypename

variableType

dessIndentThe type of the variable. Can be one of: TEXT, INTEGER, NUMBER, DATETIME or MEDIA.
Table Row (tr)idret

Table Cell (td)

Returns

divsIndentclients

class Table Row (tr)

classlastDetailRow
Table Cell (td) 

Supported Clients

sIndent
NumberSmartClient,WebClient,NGClient,MobileClientsam

Sample

sIdentjavascript
lastDetailRow