Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Divcache
Div
iddescription
HTML Table
id
classservoy sReturnTypes
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Return Types
Table Row (tr)
Table Cell (td)
Span
classsWordList
ALIGNMENT
Span
classsWordList
ANCHOR
Span
classsWordList
BEVELTYPE
Span
classsWordList
CURSOR
Span
classsWordList
DEFAULTS
Span
classsWordList
FONTSTYLE
Span
classsWordList
JSBean
Span
classsWordList
JSButton
Span
classsWordList
JSCalculation
Span
classsWordList
JSComponent
Span
classsWordList
JSDataSourceNode
Span
classsWordList
JSField
Span
classsWordList
JSForm
Span
classsWordList
JSLabel
Span
classsWordList
JSMedia
Span
classsWordList
JSMethod
Span
classsWordList
JSPart
Span
classsWordList
JSPortal
Span
classsWordList
JSRelation
Span
classsWordList
JSRelationItem
Span
classsWordList
JSStyle
Span
classsWordList
JSTab
Span
classsWordList
JSTabPanel
Span
classsWordList
JSValueList
Span
classsWordList
JSVariable
Span
classsWordList
MEDIAOPTION
Span
classsWordList
PAGEORIENTATION
Span
classsWordList
PRINTSLIDING
Span
classsWordList
SCROLLBAR
Span
classsWordList
TITLEJUSTIFICATION
Span
classsWordList
TITLEPOSITION
Span
classsWordList
UNITS
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)
JSComponent
Table Cell (td)cloneComponent(newName, component)
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;2Return TypessWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCK

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

cloneComponent(newName, component, newParentForm)
servoy sSummary12%30%58%height: 30px;3Methods SummaryMakes an exact copy of the given component (JSComponent/JSField/JSLabel) and gives it a new name. Table Row (tr)

Table Cell (td)
JSComponent
Table Cell (td)Makes an exact copy of the given component (JSComponent/JSField/JSLabel), gives it a new name and moves it to a new parent form, specified as a parameter. Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td)cloneForm(newName, jsForm)
Makes an exact copy of the given form and gives it the new name. Table Row (tr)
Table Cell (td)
String
Table Cell (td)createBevelBorder(bevel_type, highlight_outer_color, highlight_inner_color, shadow_outer_color, shadow_inner_color)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)createEmptyBorder(top_width, right_width, bottom_width, left_width)
Create a bevel border string. Table Row (tr)
Table Cell (td)
String
Table Cell (td)createEtchedBorder(bevel_type, highlight_color, shadow_color)
Create an empty border string. Table Row (tr)
Table Cell (td)
String
Table Cell (td)createFont(name, style, size)
Create an etched border string.Create a font string. Table Row (tr)
Table Cell (td)
String
Table Cell (td)createLineBorder(thick, color)
Create a line border string. Table Row (tr)
Table Cell (td)
String
Table Cell (td)createMatteBorder(top_width, right_width, bottom_width, left_width, color)
createPageFormat(width, height, leftmargin, rightmargin, topmargin, bottommargin)
Create a matte border string. Table Row (tr)
Table Cell (td)
String
Table Cell (td)Create a page format string. Table Row (tr)
Table Cell (td)
String
Table Cell (td)createPageFormat(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation)
createPageFormat(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation, units)
Create a page format string. Table Row (tr)
Table Cell (td)
String
Table Cell (td)Create a page format string. Table Row (tr)
Table Cell (td)
String
Table Cell (td)createRoundedBorder(top_width, right_width, bottom_width, left_width, top_color, right_color, bottom_color, left_color, rounding_radius, border_style)
createSpecialMatteBorder(top_width, right_width, bottom_width, left_width, top_color, right_color, bottom_color, left_color, rounding_radius, dash_pattern)
Create a special matte border string. Table Row (tr)
Table Cell (td)
String
Table Cell (td) Table Row (tr)
Table Cell (td)
String
Table Cell (td)createTitledBorder(title_text, font, color, title_justification, title_position)
Create a special matte border string.getDataSourceNode(dataSource)
Gets Create a titled border string. Table Row (tr)
Table Cell (td)
JSDataSourceNode
Table Cell (td)getForm(name)
Gets an array of all relations.Gets the specified data source node and returns information about the form (see JSDataSourceNode node). Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td) Table Row (tr)
Table Cell (td)
JSForm[]
Table Cell (td)getForms()
Gets the specified form object and returns information about the form (see JSForm node).Get an array of all forms. Table Row (tr)
Table Cell (td)
JSForm[]
Table Cell (td)getForms(datasource)
Get an array of forms, that are all based on datasource/servername. Table Row (tr)
Table Cell (td)
JSForm[]
Table Cell (td)getForms(server, tablename)
getGlobalMethod(scopeName, name)
Get an array of forms, that are all based on datasource/servername and tablename. Table Row (tr)
Table Cell (td)
JSMethod
Table Cell (td)getGlobalMethods()
Gets an existing global method by the specified name. Table Row (tr)
Table Cell (td)
JSMethod[]
Table Cell (td)The list of all global methods. Table Row (tr)
Table Cell (td)
JSMethod[]
Table Cell (td)getGlobalMethods(scopeName)
The list of all global methods. Table Row (tr)
Table Cell (td)
JSVariable
Table Cell (td)getGlobalVariable(scopeName, name)
Table Cell (td)
JSVariable[]
Table Cell (td)getGlobalVariables()
Gets an existing global variable by the specified name. Table Row (tr)Gets an array of all global variables. Table Row (tr)
Table Cell (td)
JSVariable[]
Table Cell (td)getGlobalVariables(scopeName)
Table Row (tr)
Table Cell (td)
JSMedia
Table Cell (td)getMedia(name)
Gets an array of all global variables.getMediaList()
Gets the specified media object; can be assigned to a button/label. Table Row (tr)
Table Cell (td)
JSMedia[]
Table Cell (td)Gets the list of all media objects. Table Row (tr)
Table Cell (td)
JSRelation
Table Cell (td)getRelation(name)
Retrieves an element by its uuid.Gets an existing relation by the specified name and returns a JSRelation Object. Table Row (tr)
Table Cell (td)
JSRelation[]
Table Cell (td)getRelations(datasource)
Gets an array of all relations; or an array of all global relations if the specified table is NULL. Table Row (tr)
Table Cell (td)
JSRelation[]
Table Cell (td)getRelations(servername, tablename)
Table Row (tr)
Table Cell (td)
String[]
Table Cell (td)getScopeNames()
Gets an array of all relations; or an array of all global relations if the specified table is NULL.getStyle(name)
Gets an array of all scope names used. Table Row (tr)
Table Cell (td)
JSStyle
Table Cell (td)Gets the style specified by the given name. Table Row (tr)
Table Cell (td)
JSValueList
Table Cell (td)getValueList(name)
Gets an existing valuelist by the specified name and returns a JSValueList Object that can be assigned to a field. Table Row (tr)
Table Cell (td)
JSValueList[]
Table Cell (td)getValueLists()
newForm(name, superForm)
Gets an array of all valuelists for the currently active solution. Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td)newForm(name, dataSource, styleName, show_in_menu, width, height)
Creates a new JSForm Object.Create a responsive form:Creates a new form with the given JSForm as its super form. Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td)Creates a new form with the given JSForm as its super form.Create a responsive form:Creates a new JSForm Object. Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td)newForm(name, serverName, tableName, styleName, show_in_menu, width, height)
Creates a new JSForm Object. Table Row (tr)
Table Cell (td)
JSMethod
Table Cell (td)newGlobalMethod(scopeName, code)
Creates a new global method with the specified code in a scope. Table Row (tr)
Table Cell (td)
JSVariable
Table Cell (td)newGlobalVariable(scopeName, name, type)
Table Row (tr)
Table Cell (td)
JSMedia
Table Cell (td)newMedia(name, bytes)
Creates a new global variable with the specified name and number type.Creates a new media object that can be assigned to a label or a button. Table Row (tr)
Table Cell (td)
JSRelation
Table Cell (td)newRelation(name, primaryDataSource, foreignDataSource, joinType)
newStyle(name, content)
Creates a new media object for things like a CSS or LESS file that can be set as the clients solution style.Creates a new JSRelation Object with a specified name; includes the primary datasource, foreign datasource and the type of join for the new relation. Table Row (tr)
Table Cell (td)
JSStyle
Table Cell (td)newValueList(name, type)
Creates a new style with the given css content string under the given name. Table Row (tr)
Table Cell (td)
JSValueList
Table Cell (td)removeForm(name)
Creates a new valuelist with the specified name and number type. Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)Removes the specified form during the persistent connected client session. Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)removeGlobalMethod(scopeName, name)
removeGlobalVariable(scopeName, name)
Removes the specified global method. Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)removeMedia(name)
Removes the specified global variable. Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)removeRelation(name)
Removes the media item specified by name. Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)Removes the relation specified by name. Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)removeStyle(name)
removeValueList(name)
Removes the specified style. Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)Removes the specified valuelist. Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td)revertForm(name)
Table Row (tr)
Table Cell (td)
JSMethod
Table Cell (td)wrapMethodWithArguments(method, args)
Reverts the specified form to the original (blueprint) version of the form; will result in an exception error if the form is not an original form.Get a JSMethod instance with arguments to be assigned to an event.

HTML Table

functionclass Colgroup Tag Colcolspanservoy sDetail2width100%

Col
Table Head (thead) Table Row (tr)styleheight:30px;
Table Head (th)
colspan2
Method Details
Table Body (tbody)
idcloneComponent-String_JSComponent
Table Row (tr)
idname
Table Cell (td)

cloneComponent

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSComponent
Span
stylefont-weight: bold;
cloneComponent
Spanid2Methods DetailscloneComponentname

cloneComponent(newName, component)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Makes an exact copy of the given component (JSComponent/JSField/JSLabel) and gives it a new name.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{String} newName - the new name of the cloned component
{JSComponent} component - Table Row (tr)idthe component to cloneret

Table Cell (td)class

Returns

DivsIndentJSComponent - id the exact copy of the given componentclients

Table Row (tr)

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcloneComponent-String_JSComponent_JSForm
Table Row (tr)
idname
Table Cell (td)

cloneComponent

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSComponent
Span
stylefont-weight: bold;
cloneComponent
Span

Sample

Div
classsIndent
Code Block
languagejavascript
// get an existing field to clone.
var field = solutionModel.getForm("formWithField").getField("fieldName");
// make a clone/copy of the field
var clone = solutionModel.cloneComponent("clonedField",field);
idsIdentjavascriptlastDetailRowcloneComponentname

cloneComponent(newName, component, newParentForm)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Makes an exact copy of the given component (JSComponent/JSField/JSLabel), gives it a new name and moves it to a new parent form, specified as a parameter.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{String} newName - the new name of the cloned component
{JSComponent} component - the component to clone
{JSForm} newParentForm - Table Row (tr)idthe new parent formret

Table Cell (td)class

Returns

DivsIndentJSComponent - id the exact copy of the given componentclients

Table Row (tr)

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcloneForm-String_JSForm
Table Row (tr)
idname
Table Cell (td)

cloneForm

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSForm
Span
stylefont-weight: bold;
cloneForm
Span

Sample

Div
classsIndent
Code Block
languagejavascript
// get an existing field to clone.
var field = solutionModel.getForm("formWithField").getField("fieldName");
// get the target form for the copied/cloned field
var form = solutionModel.getForm("targetForm");
// make a clone/copy of the field and re parent it to the target form.
var clone = solutionModel.cloneComponent("clonedField",field,form);
// show it
forms["targetForm"].controller.show();
idsIdentjavascriptlastDetailRowcloneFormname

cloneForm(newName, jsForm)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Makes an exact copy of the given form and gives it the new name.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{String} newName - the new name for the form clone
{JSForm} jsForm - Table Row (tr)idthe form to be clonedret

Table Cell (td)class

Returns

DivsIndentJSForm - id a JSFormclients

Table Row (tr)

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
// get an existing form
var form = solutionModel.getForm("existingForm")
// make a clone/copy from it
var clone = solutionModel.cloneForm("clonedForm", form)
// add a new label to the clone
clone.newLabel("added label",50,50,80,20);
// show it
forms["clonedForm"].controller.show();
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreateBevelBorder-Number_String_String_String_String
Table Row (tr)
idname
Table Cell (td)

createBevelBorder

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createBevelBorder
SpanidsIdentjavascriptlastDetailRowcreateBevelBordername

createBevelBorder(bevel_type, highlight_outer_color, highlight_inner_color, shadow_outer_color, shadow_inner_color)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Create a bevel border string.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} bevel_type - bevel border type (SM_BEVELTYPE.RAISED or SM_BEVELTYPE.LOWERED)
{String} highlight_outer_color - bevel border highlight outer color
{String} highlight_inner_color - bevel border highlight inner color
{String} shadow_outer_color - bevel border shadow outer color
{String} shadow_inner_color - Table Row (tr)idbevel border shadow outer colorret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreateEmptyBorder-Number_Number_Number_Number
Table Row (tr)
idname
Table Cell (td)

createEmptyBorder

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createEmptyBorder
Span

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createBevelBorder(SM_BEVELTYPE.RAISED,'#ff0000','#00ff00','#ff0000','#00ff00');
idsIdentjavascriptlastDetailRowcreateEmptyBordername

createEmptyBorder(top_width, right_width, bottom_width, left_width)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Create an empty border string.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} top_width - top width of empty border in pixels
{Number} right_width - right width of empty border in pixels
{Number} bottom_width - bottom width of empty border in pixels
{Number} left_width - Table Row (tr)idleft width of empty border in pixelsret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createEmptyBorder(1,1,1,1);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreateEtchedBorder-Number_String_String
Table Row (tr)
idname
Table Cell (td)

createEtchedBorder

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createEtchedBorder
SpanidsIdentjavascriptlastDetailRowcreateEtchedBordername

createEtchedBorder(bevel_type, highlight_color, shadow_color)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Create an etched border string.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} bevel_type - bevel border type
{String} highlight_color - bevel border highlight color
{String} shadow_color - Table Row (tr)idbevel border shadow colorret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreateFont-String_Number_Number
Table Row (tr)
idname
Table Cell (td)

createFont

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createFont
Span

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createEtchedBorder(SM_BEVELTYPE.RAISED,'#ff0000','#00ff00');
idsIdentjavascriptlastDetailRowcreateFontname

createFont(name, style, size)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Create a font string.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{String} name - the name of the font
{Number} style - the style of the font (PLAIN, BOLD, ITALIC or BOLD+ITALIC)
{Number} size - Table Row (tr)idthe font sizeret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreateLineBorder-Number_String
Table Row (tr)
idname
Table Cell (td)

createLineBorder

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createLineBorder
Span

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
var component = form.getComponent("someComponent")
component.fontType = solutionModel.createFont('Arial',SM_FONTSTYLE.BOLD,14);
idsIdentjavascriptlastDetailRowcreateLineBordername

createLineBorder(thick, color)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Create a line border string.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} thick - border thickness in pixels
{String} color - Table Row (tr)idcolor of the line borderret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreateMatteBorder-Number_Number_Number_Number_String
Table Row (tr)
idname
Table Cell (td)

createMatteBorder

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createMatteBorder
Span

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createLineBorder(1,'#ff0000');
idsIdentjavascriptlastDetailRowcreateMatteBordername

createMatteBorder(top_width, right_width, bottom_width, left_width, color)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Create a matte border string.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} top_width - top width of matte border in pixels
{Number} right_width - right width of matte border in pixels
{Number} bottom_width - bottom width of matte border in pixels
{Number} left_width - left width of matte border in pixels
{String} color - Table Row (tr)idborder colorret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreatePageFormat-Number_Number_Number_Number_Number_Number
Table Row (tr)
idname
Table Cell (td)

createPageFormat

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createPageFormat
Span

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createMatteBorder(1,1,1,1,"#00ff00");
idsIdentjavascriptlastDetailRowcreatePageFormatname

createPageFormat(width, height, leftmargin, rightmargin, topmargin, bottommargin)

Table Row (tr)des Table Cell (td) DivclasssIndent
Create a page format string.
id


Note: The unit specified for width, height and all margins MUST be the same.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} width - the specified width of the page to be printed.
{Number} height - the specified height of the page to be printed.
{Number} leftmargin - the specified left margin of the page to be printed.
{Number} rightmargin - the specified right margin of the page to be printed.
{Number} topmargin - the specified top margin of the page to be printed.
{Number} bottommargin - Table Row (tr)idthe specified bottom margin of the page to be printed.ret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreatePageFormat-Number_Number_Number_Number_Number_Number_Number
Table Row (tr)
idname
Table Cell (td)

createPageFormat

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createPageFormat
Span

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
form.defaultPageFormat = solutionModel.createPageFormat(612,792,72,72,72,72,SM_ORIENTATION.PORTRAIT,SM_UNITS.PIXELS);
idsIdentjavascriptlastDetailRowcreatePageFormatname

createPageFormat(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation)

Table Row (tr)des Table Cell (td) DivclasssIndent
Create a page format string.
id


Note: The unit specified for width, height and all margins MUST be the same.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} width - the specified width of the page to be printed.
{Number} height - the specified height of the page to be printed.
{Number} leftmargin - the specified left margin of the page to be printed.
{Number} rightmargin - the specified right margin of the page to be printed.
{Number} topmargin - the specified top margin of the page to be printed.
{Number} bottommargin - the specified bottom margin of the page to be printed.
{Number} orientation - Table Row (tr)idthe specified orientation of the page to be printed; the default is Portrait moderet

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreatePageFormat-Number_Number_Number_Number_Number_Number_Number_Number
Table Row (tr)
idname
Table Cell (td)

createPageFormat

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createPageFormat
Span

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
form.defaultPageFormat = solutionModel.createPageFormat(612,792,72,72,72,72,SM_ORIENTATION.PORTRAIT,SM_UNITS.PIXELS);
idsIdentjavascriptlastDetailRowcreatePageFormatname

createPageFormat(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation, units)

Table Row (tr)des Table Cell (td) DivclasssIndent
Create a page format string.
id


Note: The unit specified for width, height and all margins MUST be the same.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} width - the specified width of the page to be printed.
{Number} height - the specified height of the page to be printed.
{Number} leftmargin - the specified left margin of the page to be printed.
{Number} rightmargin - the specified right margin of the page to be printed.
{Number} topmargin - the specified top margin of the page to be printed.
{Number} bottommargin - the specified bottom margin of the page to be printed.
{Number} orientation - the specified orientation of the page to be printed; the default is Portrait mode
{Number} units - Table Row (tr)idthe specified units for the width and height of the page to be printed; the default is pixelsret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
form.defaultPageFormat = solutionModel.createPageFormat(612,792,72,72,72,72,SM_ORIENTATION.PORTRAIT,SM_UNITS.PIXELS);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreateRoundedBorder-Number_Number_Number_Number_String_String_String_String_NumberArray_StringArray
Table Row (tr)
idname
Table Cell (td)

createRoundedBorder

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createRoundedBorder
SpanidsIdentjavascriptlastDetailRowcreateRoundedBordername

createRoundedBorder(top_width, right_width, bottom_width, left_width, top_color, right_color, bottom_color, left_color, rounding_radius, border_style)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Create a special matte border string.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} top_width - top width of matte border in pixels
{Number} right_width - right width of matte border in pixels
{Number} bottom_width - bottom width of matte border in pixels
{Number} left_width - left width of matte border in pixels
{String} top_color - top border color
{String} right_color - right border color
{String} bottom_color - bottom border color
{String} left_color - left border color
{Number[]} rounding_radius - array with width/height of the arc to round the corners
{String[]} border_style - Table Row (tr)idthe border styles for the four margins(top/left/bottom/left)ret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
// create a rectangle border (no rounded corners) and continous line
form.borderType = solutionModel.createSpecialMatteBorder(1,1,1,1,"#00ff00","#00ff00","#00ff00","#00ff00",0,null);
// create a border with rounded corners and dashed line (25 pixels drawn, then 25 pixels skipped)
// rounding_radius is an array of up to 8 numbers, order is: top-left,top-right,bottom-right,bottom-left (repetead twice - for width and height)
// form.borderType = solutionModel.createSpecialMatteBorder(1,1,1,1,"#00ff00","#00ff00","#00ff00","#00ff00",new Array(10,10,10,10),new Array(25,25));
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreateSpecialMatteBorder-Number_Number_Number_Number_String_String_String_String_Number_NumberArray
Table Row (tr)
idname
Table Cell (td)

createSpecialMatteBorder

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createSpecialMatteBorder
SpanidsIdentjavascriptlastDetailRowcreateSpecialMatteBordername

createSpecialMatteBorder(top_width, right_width, bottom_width, left_width, top_color, right_color, bottom_color, left_color, rounding_radius, dash_pattern)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Create a special matte border string.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{Number} top_width - top width of matte border in pixels
{Number} right_width - right width of matte border in pixels
{Number} bottom_width - bottom width of matte border in pixels
{Number} left_width - left width of matte border in pixels
{String} top_color - top border color
{String} right_color - right border color
{String} bottom_color - bottom border color
{String} left_color - left border color
{Number} rounding_radius - width of the arc to round the corners
{Number[]} dash_pattern - Table Row (tr)idthe dash pattern of border strokeret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
// create a rectangle border (no rounded corners) and continous line
form.borderType = solutionModel.createSpecialMatteBorder(1,1,1,1,"#00ff00","#00ff00","#00ff00","#00ff00",0,null);
// create a border with rounded corners and dashed line (25 pixels drawn, then 25 pixels skipped)
// form.borderType = solutionModel.createSpecialMatteBorder(1,1,1,1,"#00ff00","#00ff00","#00ff00","#00ff00",10,new Array(25,25));
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idcreateTitledBorder-String_String_String_Number_Number
Table Row (tr)
idname
Table Cell (td)

createTitledBorder

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
createTitledBorder
SpanidsIdentjavascriptlastDetailRowcreateTitledBordername

createTitledBorder(title_text, font, color, title_justification, title_position)

Table Row (tr)des Table Cell (td) DivclassidsIndent
Create a titled border string.
Table Row (tr)prs

Table Cell (td)class

Parameters

DivsIndent{String} title_text - the text from border
{String} font - title text font string
{String} color - border color
{Number} title_justification - title text justification
{Number} title_position - Table Row (tr)idbevel title text positionret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetDataSourceNode-String
Table Row (tr)
idname
Table Cell (td)

getDataSourceNode

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSDataSourceNode
Span
stylefont-weight: bold;
getDataSourceNode
Span
(dataSource)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets the specified data source node and returns information about the form (see JSDataSourceNode node).
The JSDataSourceNode holds all calculations and foundset methods.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} dataSource - table data source
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSDataSourceNode - a JSDataSourceNode
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var dsnode = solutionModel.getDataSourceNode('db:/example_data/customers');
var c = dsnode.getCalculation("myCalculation");
application.output("Name: " + c.getName() + ", Stored: " + c.isStored());
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetForm-String
Table Row (tr)
idname
Table Cell (td)

getForm

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSForm
Span
stylefont-weight: bold;
getForm
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets the specified form object and returns information about the form (see JSForm node).
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} name - the specified name of the form
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSForm - a JSForm
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var myForm = solutionModel.getForm('existingFormName');
//get the style of the form (for all other properties see JSForm node)
var styleName = myForm.styleName;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetForms
Table Row (tr)
idname
Table Cell (td)

getForms

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSForm[]
Span
stylefont-weight: bold;
getForms
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get an array of all forms.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSForm[] - an array of JSForm type elements
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var forms = solutionModel.getForms()
for (var i in forms)
	application.output(forms[i].name)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetForms-String
Table Row (tr)
idname
Table Cell (td)

getForms

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSForm[]
Span
stylefont-weight: bold;
getForms
Span
(datasource)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get an array of forms, that are all based on datasource/servername.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} datasource - the datasource or servername
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSForm[] - an array of JSForm type elements
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var forms = solutionModel.getForms(datasource)
for (var i in forms)
	application.output(forms[i].name)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetForms-String_String
Table Row (tr)
idname
Table Cell (td)

getForms

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSForm[]
Span
stylefont-weight: bold;
getForms
Span
(server, tablename)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get an array of forms, that are all based on datasource/servername and tablename.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} server - the datasource or servername
{String} tablename - the tablename
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSForm[] - an array of JSForm type elements
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var forms = solutionModel.getForms(datasource,tablename)
for (var i in forms)
	application.output(forms[i].name)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetGlobalMethod-String_String
Table Row (tr)
idname
Table Cell (td)

getGlobalMethod

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSMethod
Span
stylefont-weight: bold;
getGlobalMethod
Span
(scopeName, name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets an existing global method by the specified name.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} scopeName - the scope in which the method is searched
{String} name - the name of the specified global method
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSMethod - a JSMethod
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var method = solutionModel.getGlobalMethod('globals', 'nameOfGlobalMethod');
if (method != null) application.output(method.code);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetGlobalMethods
Table Row (tr)
idname
Table Cell (td)

getGlobalMethods

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSMethod[]
Span
stylefont-weight: bold;
getGlobalMethods
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The list of all global methods.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSMethod[] - an array of JSMethod type elements
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var methods = solutionModel.getGlobalMethods('globals');
for (var x in methods)
	application.output(methods[x].getName());
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetGlobalMethods-String
Table Row (tr)
idname
Table Cell (td)

getGlobalMethods

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSMethod[]
Span
stylefont-weight: bold;
getGlobalMethods
Span
(scopeName)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The list of all global methods.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} scopeName - limit to global methods of specified scope name
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSMethod[] - an array of JSMethod type elements
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var methods = solutionModel.getGlobalMethods('globals');
for (var x in methods)
	application.output(methods[x].getName());
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetGlobalVariable-String_String
Table Row (tr)
idname
Table Cell (td)

getGlobalVariable

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSVariable
Span
stylefont-weight: bold;
getGlobalVariable
Span
(scopeName, name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets an existing global variable by the specified name.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} scopeName - the scope in which the variable is searched
{String} name - the specified name of the global variable
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSVariable - a JSVariable
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var globalVariable = solutionModel.getGlobalVariable('globals', 'globalVariableName');
application.output(globalVariable.name + " has the default value of " + globalVariable.defaultValue);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetGlobalVariables
Table Row (tr)
idname
Table Cell (td)

getGlobalVariables

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSVariable[]
Span
stylefont-weight: bold;
getGlobalVariables
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets an array of all global variables.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSVariable[] - an array of JSVariable type elements
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var globalVariables = solutionModel.getGlobalVariables('globals');
for (var i in globalVariables)
	application.output(globalVariables[i].name + " has the default value of " + globalVariables[i].defaultValue);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetGlobalVariables-String
Table Row (tr)
idname
Table Cell (td)

getGlobalVariables

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSVariable[]
Span
stylefont-weight: bold;
getGlobalVariables
Span
(scopeName)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets an array of all global variables.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} scopeName - limit to global vars of specified scope name
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSVariable[] - an array of JSVariable type elements
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var globalVariables = solutionModel.getGlobalVariables('globals');
for (var i in globalVariables)
	application.output(globalVariables[i].name + " has the default value of " + globalVariables[i].defaultValue);
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetMedia-String
Table Row (tr)
idname
Table Cell (td)

getMedia

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSMedia
Span
stylefont-weight: bold;
getMedia
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets the specified media object; can be assigned to a button/label.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} name - the specified name of the media object
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSMedia - a JSMedia element
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var myMedia = solutionModel.getMedia('button01.gif')
//now set the imageMedia property of your label or button
//myButton.imageMedia = myMedia
// OR
//myLabel.imageMedia = myMedia
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetMediaList
Table Row (tr)
idname
Table Cell (td)

getMediaList

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSMedia[]
Span
stylefont-weight: bold;
getMediaList
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets the list of all media objects.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSMedia[] - a list with all the media objects.
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var mediaList = solutionModel.getMediaList();
if (mediaList.length != 0 && mediaList != null) {
	for (var x in mediaList) {
		application.output(mediaList[x]);
	}
}
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetRelation-String
Table Row (tr)
idname
Table Cell (td)

getRelation

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSRelation
Span
stylefont-weight: bold;
getRelation
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets an existing relation by the specified name and returns a JSRelation Object.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} name - the specified name of the relation
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
JSRelation - a JSRelation
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var relation = solutionModel.getRelation('name');
application.output("The primary server name is " + relation.primaryServerName);
application.output("The primary table name is " + relation.primaryTableName);
application.output("The foreign table name is " + relation.foreignTableName);
application.output("The relation items are " + relation.getRelationItems());
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idgetRelations-String
Table Row (tr)
idname
Table Cell (td)

getRelations

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSRelation[]
Span
stylefont-weight: bold;
getRelations
Span
(datasource)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets an array of all relations; or an array of all global relations if the specified table is NULL.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} datasource -

Sample

Div
classsIndent
Code Block
languagejavascript
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createTitledBorder('Test',solutionModel.createFont('Arial',SM_FONTSTYLE.PLAIN,10),'#ff0000',SM_TITLEJUSTIFICATION.CENTER,SM_TITLEPOSITION.TOP);
Table Row (tr)idsIdentjavascriptlastDetailRowgetAllRelationsname

getAllRelations()

dessIndent
Gets an array of all relations.
ret

Returns

sIndent an array of all relations (all elements in the array are of type JSRelation)
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getDataSourceNodename

getDataSourceNode(dataSource)

dessIndent
Gets the specified data source node and returns information about the form (see JSDataSourceNode node).
The JSDataSourceNode holds all calculations and foundset methods.
prs

Parameters

sIndentdataSourcetable data source
ret

Returns

sIndent a JSDataSourceNode
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getFormname

getForm(name)

dessIndent
Gets the specified form object and returns information about the form (see JSForm node).
prs

Parameters

sIndentnamethe specified name of the form
ret

Returns

sIndent a JSForm
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getFormsname

getForms()

dessIndent
Get an array of all forms.
ret

Returns

sIndent an array of JSForm type elements
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getFormsname

getForms(datasource)

dessIndent
Get an array of forms, that are all based on datasource/servername.
prs

Parameters

sIndentdatasourcethe datasource or servername
ret

Returns

sIndent an array of JSForm type elements
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getFormsname

getForms(server, tablename)

dessIndent
Get an array of forms, that are all based on datasource/servername and tablename.
prs

Parameters

sIndentserverthe datasource or servernametablenamethe tablename
ret

Returns

sIndent an array of JSForm type elements
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getGlobalMethodname

getGlobalMethod(scopeName, name)

dessIndent
Gets an existing global method by the specified name.
prs

Parameters

sIndentscopeNamethe scope in which the method is searchednamethe name of the specified global method<