Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
{div:style=}
Wiki Markup
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



Enter additional information related to this 'class'

inside

the

\

{div}

macro

with

'id=description'

{div} {div:id=description}{div}\\ {table:id=|class=servoy sReturnTypes}{tr:style=height: 30px;}{th}Return Types{th}{tr}{tr}{td}{span:class=sWordList}[ALIGNMENT]{span}{span:class=sWordList}[ANCHOR]{span}{span:class=sWordList}[BEVELTYPE]{span}{span:class=sWordList}[CURSOR]{span}{span:class=sWordList}[DEFAULTS]{span}{span:class=sWordList}[FONTSTYLE]{span}{span:class=sWordList}[JSBean]{span}{span:class=sWordList}[JSButton]{span}{span:class=sWordList}[JSCalculation]{span}{span:class=sWordList}[JSComponent]{span}{span:class=sWordList}[JSDataSourceNode]{span}{span:class=sWordList}[JSField]{span}{span:class=sWordList}[JSForm]{span}{span:class=sWordList}[JSLabel]{span}{span:class=sWordList}[JSMedia]{span}{span:class=sWordList}[JSMethod]{span}{span:class=sWordList}[JSPart]{span}{span:class=sWordList}[JSPortal]{span}{span:class=sWordList}[JSRelation]{span}{span:class=sWordList}[JSRelationItem]{span}{span:class=sWordList}[JSStyle]{span}{span:class=sWordList}[JSTab]{span}{span:class=sWordList}[JSTabPanel]{span}{span:class=sWordList}[JSValueList]{span}{span:class=sWordList}[JSVariable]{span}{span:class=sWordList}[MEDIAOPTION]{span}{span:class=sWordList}[PAGEORIENTATION]{span}{span:class=sWordList}[PRINTSLIDING]{span}{span:class=sWordList}[SCROLLBAR]{span}{span:class=sWordList}[TITLEJUSTIFICATION]{span}{span:class=sWordList}[TITLEPOSITION]{span}{span:class=sWordList}[UNITS]{span}{td}{tr}{table}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[JSComponent]{td}{td}[#cloneComponent]\(newName, component) Makes an exact copy of the given component (JSComponent/JSField/JSLabel) and gives it a new name.{td}{tr}{tbody}{tbody}{tr}{td}[JSComponent]{td}{td}[#cloneComponent]\(newName, component, newParentForm) Makes an exact copy of the given component

Div
iddescription


HTML Table
id
classservoy sReturnTypes
Table Row (tr)
styleheight: 30px;
Table Head (th)
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
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSComponent
Table Cell (td)
#cloneComponent(newName, component)
Makes an exact copy of the given component (JSComponent/JSField/JSLabel) and gives it a new name.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSComponent
Table Cell (td)
#cloneComponent(newName, component, newParentForm)
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 Body (tbody)
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 Body (tbody)
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)

...


Create

...

a

...

bevel

...

border

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#createEmptyBorder(top_width,

...

right_width,

...

bottom_width,

...

left_width)

...


Create

...

an

...

empty

...

border

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#createEtchedBorder(bevel_type,

...

highlight_color,

...

shadow_color)

...


Create

...

an

...

etched

...

border

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#createFont(name,

...

style,

...

size)

...


Create

...

a

...

font

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#createLineBorder(thick,

...

color)

...


Create

...

a

...

line

...

border

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#createMatteBorder(top_width,

...

right_width,

...

bottom_width,

...

left_width,

...

color)

...


Create

...

a

...

matte

...

border

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#createPageFormat(width,

...

height,

...

leftmargin,

...

rightmargin,

...

topmargin,

...

bottommargin)

...


Create

...

a

...

page

...

format

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#createPageFormat(width,

...

height,

...

leftmargin,

...

rightmargin,

...

topmargin,

...

bottommargin,

...

orientation)

...


Create

...

a

...

page

...

format

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#createPageFormat(width,

...

height,

...

leftmargin,

...

rightmargin,

...

topmargin,

...

bottommargin,

...

orientation,

...

units)

...


Create

...

a

...

page

...

format

...

string.

...

Table Body (tbody)
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)

...


Create

...

a

...

special

...

matte

...

border

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#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 Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#createTitledBorder(title_text,

...

font,

...

color,

...

title_justification,

...

title_position)

...


Create

...

a

...

titled

...

border

...

string.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSDataSourceNode
Table Cell (td)
#getDataSourceNode(dataSource)
Gets the specified data source node and returns information about the form (see JSDataSourceNode node).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td)
#getForm(name)
Gets the specified form object and returns information about the form (see JSForm node).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSForm[]
Table Cell (td)
#getForms()
Get an array of all forms.
Table Body (tbody)
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 Body (tbody)
Table Row (tr)
Table Cell (td)
JSForm[]
Table Cell (td)
#getForms(server, tablename)
Get an array of forms, that are all based on datasource/servername and tablename.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSMethod
Table Cell (td)
#getGlobalMethod(scopeName, name)
Gets an existing global method by the specified name.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSMethod[]
Table Cell (td)
#getGlobalMethods()
The list of all global methods.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSMethod[]
Table Cell (td)
#getGlobalMethods(scopeName)
The list of all global methods.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSVariable
Table Cell (td)
#getGlobalVariable(scopeName, name)
Gets an existing global variable by the specified name.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSVariable[]
Table Cell (td)
#getGlobalVariables()
Gets an array of all global variables.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSVariable[]
Table Cell (td)
#getGlobalVariables(scopeName)
Gets an array of all global variables.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSMedia
Table Cell (td)
#getMedia(name)
Gets the specified media object; can be assigned to a button/label.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSMedia[]
Table Cell (td)
#getMediaList()
Gets the list of all media objects.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSRelation
Table Cell (td)
#getRelation(name)
Gets an existing relation by the specified name and returns a JSRelation Object.
Table Body (tbody)
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 Body (tbody)
Table Row (tr)
Table Cell (td)
JSRelation[]
Table Cell (td)
#getRelations(servername, tablename)
Gets an array of all relations; or an array of all global relations if the specified table is NULL.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String[]
Table Cell (td)
#getScopeNames()
Gets an array of all scope names used.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSStyle
Table Cell (td)
#getStyle(name)
Gets the style specified by the given name.
Table Body (tbody)
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 Body (tbody)
Table Row (tr)
Table Cell (td)
JSValueList[]
Table Cell (td)
#getValueLists()
Gets an array of all valuelists for the currently active solution.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td)
#newForm(name, superForm)
Creates a new form with the given JSForm as its super form.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td)
#newForm(name, dataSource, styleName, show_in_menu, width, height)
Creates a new JSForm Object.
Table Body (tbody)
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 Body (tbody)
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 Body (tbody)
Table Row (tr)
Table Cell (td)
JSVariable
Table Cell (td)
#newGlobalVariable(scopeName, name, type)
Creates a new global variable with the specified name and number type.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSMedia
Table Cell (td)
#newMedia(name, bytes)
Creates a new media object that can be assigned to a label or a button.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSRelation
Table Cell (td)
#newRelation(name, primaryDataSource, foreignDataSource, joinType)
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 Body (tbody)
Table Row (tr)
Table Cell (td)
JSStyle
Table Cell (td)
#newStyle(name, content)
Creates a new style with the given css content string under the given name.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSValueList
Table Cell (td)
#newValueList(name, type)
Creates a new valuelist with the specified name and number type.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#removeForm(name)
Removes the specified form during the persistent connected client session.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#removeGlobalMethod(scopeName, name)
Removes the specified global method.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#removeGlobalVariable(scopeName, name)
Removes the specified global variable.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#removeMedia(name)
Removes the media item specified by name.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#removeRelation(name)
Removes the relation specified by name.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#removeStyle(name)
Removes the specified style.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#removeValueList(name)
Removes the specified valuelist.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSForm
Table Cell (td)
#revertForm(name)
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.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSMethod
Table Cell (td)
#wrapMethodWithArguments(method, args)
Get a JSMethod instance with arguments to be assigned to an event.

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
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
Span
(newName, component)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Makes an exact copy of the given component (JSComponent/JSField/JSLabel) and gives it a new name.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} newName – the new name of the cloned component
{JSComponent} component – the component to clone
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSComponent – the exact copy of the given component
Table Row (tr)
idsam
Table Cell (td)
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcloneComponent-String_JSComponent_JSForm
}{
Table Row (tr)
:
id
=
name
}{td}h6.cloneComponent{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
cloneComponent
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSComponent
]{span}{span:style=
Span
stylefont-weight:
bold;
}
cloneComponent
{span}{span}\
Span
(newName,
component,
newParentForm)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Makes an exact copy of the given component
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} newName -- the new name of the cloned component \{[JSComponent]} component -- the component to clone \{[JSForm]} newParentForm -- the new parent form {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSComponent] -- the exact copy of the given component{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} newName – the new name of the cloned component
{JSComponent} component – the component to clone
{JSForm} newParentForm – the new parent form
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSComponent – the exact copy of the given component
Table Row (tr)
idsam
Table Cell (td)
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();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcloneForm-String_JSForm
}{
Table Row (tr)
:
id
=
name
}{td}h6.cloneForm{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
cloneForm
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSForm
]{span}{span:style=
Span
stylefont-weight:
bold;
}
cloneForm
{span}{span}\
Span
(newName,
jsForm)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Makes an exact copy of the given form and gives it the new name.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} newName -- the new name for the form clone \{[JSForm]} jsForm -- the form to be cloned {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSForm] -- a JSForm{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Makes an exact copy of the given form and gives it the new name.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} newName – the new name for the form clone
{JSForm} jsForm – the form to be cloned
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

// 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();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateBevelBorder-Number_String_String_String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.createBevelBorder{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createBevelBorder
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createBevelBorder
{span}{span}\
Span
(bevel_type,
highlight_outer_color,
highlight_inner_color,
shadow_outer_color,
shadow_inner_color)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a bevel border string.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[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 -- bevel border shadow outer color {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create a bevel border string.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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 – bevel border shadow outer color
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createBevelBorder(SM_BEVELTYPE.RAISED,'#ff0000','#00ff00','#ff0000','#00ff00');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateEmptyBorder-Number_Number_Number_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.createEmptyBorder{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createEmptyBorder
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createEmptyBorder
{span}{span}\
Span
(top_width,
right_width,
bottom_width,
left_width)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create an empty border string.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[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 -- left width of empty border in pixels {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create an empty border string.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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 – left width of empty border in pixels
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createEmptyBorder(1,1,1,1);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateEtchedBorder-Number_String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.createEtchedBorder{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createEtchedBorder
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createEtchedBorder
{span}{span}\
Span
(bevel_type,
highlight_color,
shadow_color)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create an etched border string.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} bevel_type -- bevel border type \{[String]} highlight_color -- bevel border highlight color \{[String]} shadow_color -- bevel border shadow color {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create an etched border string.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} bevel_type – bevel border type
{String} highlight_color – bevel border highlight color
{String} shadow_color – bevel border shadow color
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createEtchedBorder(SM_BEVELTYPE.RAISED,'#ff0000','#00ff00');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateFont-String_Number_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.createFont{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createFont
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createFont
{span}{span}\
Span
(name,
style,
size)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a font string.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- the name of the font \{[Number]} style -- the style of the font (PLAIN, BOLD, ITALIC or BOLD+ITALIC) \{[Number]} size -- the font size {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create a font string.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – the name of the font
{Number} style – the style of the font (PLAIN, BOLD, ITALIC or BOLD+ITALIC)
{Number} size – the font size
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateLineBorder-Number_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.createLineBorder{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createLineBorder
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createLineBorder
{span}{span}\
Span
(thick,
color)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a line border string.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} thick -- border thickness in pixels \{[String]} color -- color of the line border {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create a line border string.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} thick – border thickness in pixels
{String} color – color of the line border
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createLineBorder(1,'#ff0000');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateMatteBorder-Number_Number_Number_Number_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.createMatteBorder{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createMatteBorder
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createMatteBorder
{span}{span}\
Span
(top_width,
right_width,
bottom_width,
left_width,
color)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a matte border string.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[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 -- border color {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create a matte border string.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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 – border color
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createMatteBorder(1,1,1,1,"#00ff00");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreatePageFormat-Number_Number_Number_Number_Number_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.createPageFormat{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createPageFormat
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createPageFormat
{span}{span}\
Span
(width,
height,
leftmargin,
rightmargin,
topmargin,
bottommargin)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a page format string. Note: The unit specified for width, height and all margins MUST be the same.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[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. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Create a page format string.

Note: The unit specified for width, height and all margins MUST be the same.

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreatePageFormat-Number_Number_Number_Number_Number_Number_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.createPageFormat{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createPageFormat
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createPageFormat
{span}{span}\
Span
(width,
height,
leftmargin,
rightmargin,
topmargin,
bottommargin,
orientation)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a page format string. Note: The unit specified for width, height and all margins MUST be the same.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[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 {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Create a page format string.

Note: The unit specified for width, height and all margins MUST be the same.

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreatePageFormat-Number_Number_Number_Number_Number_Number_Number_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.createPageFormat{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createPageFormat
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createPageFormat
{span}{span}\
Span
(width,
height,
leftmargin,
rightmargin,
topmargin,
bottommargin,
orientation,
units)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a page format string. Note: The unit specified for width, height and all margins MUST be the same.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[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 -- the specified units for the width and height of the page to be printed; the default is pixels {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Create a page format string.

Note: The unit specified for width, height and all margins MUST be the same.

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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 – the specified units for the width and height of the page to be printed; the default is pixels
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateRoundedBorder-Number_Number_Number_Number_String_String_String_String_NumberArray_StringArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.createRoundedBorder{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createRoundedBorder
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createRoundedBorder
{span}{span}\
Span
(top_width,
right_width,
bottom_width,
left_width,
top_color,
right_color,
bottom_color,
left_color,
rounding_radius,
border_style)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a special matte border string.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[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 -- the border styles for the four
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create a special matte border string.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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 – the border styles for the four margins(top/left/bottom/left)
{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
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));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateSpecialMatteBorder-Number_Number_Number_Number_String_String_String_String_Number_NumberArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.createSpecialMatteBorder{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createSpecialMatteBorder
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createSpecialMatteBorder
{span}{span}\
Span
(top_width,
right_width,
bottom_width,
left_width,
top_color,
right_color,
bottom_color,
left_color,
rounding_radius,
dash_pattern)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a special matte border string.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[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 -- the dash pattern of border stroke {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create a special matte border string.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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 – the dash pattern of border stroke
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
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));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateTitledBorder-String_String_String_Number_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.createTitledBorder{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createTitledBorder
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createTitledBorder
{span}{span}\
Span
(title_text,
font,
color,
title_justification,
title_position)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a titled border string.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[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 -- bevel title text position {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create a titled border string.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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 – bevel title text position
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getDataSourceNode-String}{tr:id=name}{td}h6.getDataSourceNode{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSDataSourceNode]{span}{span:style=font-weight: bold;}getDataSourceNode{span}{span}\(dataSource){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets the specified data source node and returns information about the form (see JSDataSourceNode node). The JSDataSourceNode holds all calculations and foundset methods.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dataSource -- table data source {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSDataSourceNode] -- a JSDataSourceNode{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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());
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getForm-String}{tr:id=name}{td}h6.getForm{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSForm]{span}{span:style=font-weight: bold;}getForm{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets the specified form object and returns information about the form (see JSForm node).{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- the specified name of the form {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSForm] -- a JSForm{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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;
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getForms}{tr:id=name}{td}h6.getForms{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSForm]\[]{span}{span:style=font-weight: bold;}getForms{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get an array of all forms.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSForm]\[] -- an array of JSForm type elements{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getForms-String}{tr:id=name}{td}h6.getForms{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSForm]\[]{span}{span:style=font-weight: bold;}getForms{span}{span}\(datasource){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get an array of forms, that are all based on datasource/servername.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} datasource -- the datasource or servername {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSForm]\[] -- an array of JSForm type elements{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetForms-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.getForms{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
getForms
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSForm
]\
[]
{span}{span:style=
Span
stylefont-weight:
bold;
}
getForms
{span}{span}\
Span
(server,
tablename)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get an array of forms, that are all based on datasource/servername and tablename.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} server -- the datasource or servername \{[String]} tablename -- the tablename {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSForm]\[] -- an array of JSForm type elements{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetGlobalMethod-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.getGlobalMethod{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
getGlobalMethod
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSMethod
]{span}{span:style=
Span
stylefont-weight:
bold;
}
getGlobalMethod
{span}{span}\
Span
(scopeName,
name)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an existing global method by the specified name.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} scopeName -- the scope in which the method is searched \{[String]} name -- the name of the specified global method {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSMethod] -- a JSMethod{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalMethods}{tr:id=name}{td}h6.getGlobalMethods{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSMethod]\[]{span}{span:style=font-weight: bold;}getGlobalMethods{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}The list of all global methods.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSMethod]\[] -- an array of JSMethod type elements{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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());
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalMethods-String}{tr:id=name}{td}h6.getGlobalMethods{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSMethod]\[]{span}{span:style=font-weight: bold;}getGlobalMethods{span}{span}\(scopeName){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}The list of all global methods.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} scopeName -- limit to global methods of specified scope name {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSMethod]\[] -- an array of JSMethod type elements{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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());
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetGlobalVariable-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.getGlobalVariable{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
getGlobalVariable
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSVariable
]{span}{span:style=
Span
stylefont-weight:
bold;
}
getGlobalVariable
{span}{span}\
Span
(scopeName,
name)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an existing global variable by the specified name.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} scopeName -- the scope in which the variable is searched \{[String]} name -- the specified name of the global variable {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSVariable] -- a JSVariable{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalVariables}{tr:id=name}{td}h6.getGlobalVariables{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSVariable]\[]{span}{span:style=font-weight: bold;}getGlobalVariables{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an array of all global variables.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSVariable]\[] -- an array of JSVariable type elements{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalVariables-String}{tr:id=name}{td}h6.getGlobalVariables{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSVariable]\[]{span}{span:style=font-weight: bold;}getGlobalVariables{span}{span}\(scopeName){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an array of all global variables.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} scopeName -- limit to global vars of specified scope name {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSVariable]\[] -- an array of JSVariable type elements{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMedia-String}{tr:id=name}{td}h6.getMedia{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSMedia]{span}{span:style=font-weight: bold;}getMedia{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets the specified media object; can be assigned to a button/label.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- the specified name of the media object {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSMedia] -- a JSMedia element{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMediaList}{tr:id=name}{td}h6.getMediaList{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSMedia]\[]{span}{span:style=font-weight: bold;}getMediaList{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets the list of all media objects.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSMedia]\[] -- a list with all the media objects.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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]);
	}
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getRelation-String}{tr:id=name}{td}h6.getRelation{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSRelation]{span}{span:style=font-weight: bold;}getRelation{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an existing relation by the specified name and returns a JSRelation Object.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- the specified name of the relation {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSRelation] -- a JSRelation{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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());
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getRelations-String}{tr:id=name}{td}h6.getRelations{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSRelation]\[]{span}{span:style=font-weight: bold;}getRelations{span}{span}\(datasource){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an array of all relations; or an array of all global relations if the specified table is NULL.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} datasource -- the specified name of the datasource for the specified table {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSRelation]\[] -- an array of all relations (all elements in the array are of type JSRelation){div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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 – the specified name of the datasource for the specified table
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSRelation[] – an array of all relations (all elements in the array are of type JSRelation)
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var relations = solutionModel.getRelations('server_name','table_name');
if (relations.length != 0)
	for (var i in relations)
		application.output(relations[i].name);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetRelations-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.getRelations{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
getRelations
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSRelation
]\
[]
{span}{span:style=
Span
stylefont-weight:
bold;
}
getRelations
{span}{span}\
Span
(servername,
tablename)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an array of all relations; or an array of all global relations if the specified table is NULL.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} servername -- the specified name of the server for the specified table \{[String]} tablename -- the specified name of the table {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSRelation]\[] -- an array of all relations (all elements in the array are of type JSRelation){div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
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} servername – the specified name of the server for the specified table
{String} tablename – the specified name of the table
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSRelation[] – an array of all relations (all elements in the array are of type JSRelation)
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var relations = solutionModel.getRelations('server_name','table_name');
if (relations.length != 0)
	for (var i in relations)
		application.output(relations[i].name);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getScopeNames}{tr:id=name}{td}h6.getScopeNames{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]\[]{span}{span:style=font-weight: bold;}getScopeNames{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an array of all scope names used.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]\[] -- an array of String scope names{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetScopeNames
Table Row (tr)
idname
Table Cell (td)
getScopeNames
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String[]
Span
stylefont-weight: bold;
getScopeNames
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets an array of all scope names used.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String[] – an array of String scope names
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var scopeNames = solutionModel.getScopeNames();
for (var name in scopeNames)
	application.output(name);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getStyle-String}{tr:id=name}{td}h6.getStyle{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSStyle]{span}{span:style=font-weight: bold;}getStyle{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets the style specified by the given name.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- the specified name of the style {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSStyle] -- a JSStyle{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetStyle-String
Table Row (tr)
idname
Table Cell (td)
getStyle
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSStyle
Span
stylefont-weight: bold;
getStyle
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets the style specified by the given name.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – the specified name of the style
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSStyle – a JSStyle
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var style = solutionModel.getStyle('my_existing_style')
style.content = 'combobox { color: #0000ff;font: italic 10pt "Verdana";}'
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getValueList-String}{tr:id=name}{td}h6.getValueList{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSValueList]{span}{span:style=font-weight: bold;}getValueList{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an existing valuelist by the specified name and returns a JSValueList Object that can be assigned to a field.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- the specified name of the valuelist {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSValueList] -- a JSValueList object{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueList-String
Table Row (tr)
idname
Table Cell (td)
getValueList
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSValueList
Span
stylefont-weight: bold;
getValueList
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets an existing valuelist by the specified name and returns a JSValueList Object that can be assigned to a field.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – the specified name of the valuelist
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSValueList – a JSValueList object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var myValueList = solutionModel.getValueList('myValueListHere')
//now set the valueList property of your field
//myField.valuelist = myValueList
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getValueLists}{tr:id=name}{td}h6.getValueLists{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSValueList]\[]{span}{span:style=font-weight: bold;}getValueLists{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets an array of all valuelists for the currently active solution.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSValueList]\[] -- an array of JSValueList objects{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueLists
Table Row (tr)
idname
Table Cell (td)
getValueLists
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSValueList[]
Span
stylefont-weight: bold;
getValueLists
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets an array of all valuelists for the currently active solution.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSValueList[] – an array of JSValueList objects
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var valueLists = solutionModel.getValueLists();
if (valueLists != null && valueLists.length != 0)
	for (var i in valueLists)
		application.output(valueLists[i].name);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idnewForm-String_JSForm
}{
Table Row (tr)
:
id
=
name
}{td}h6.newForm{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
newForm
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSForm
]{span}{span:style=
Span
stylefont-weight:
bold;
}
newForm
{span}{span}\
Span
(name,
superForm)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Creates a new form with the given JSForm as its super form.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- The name of the new form \{[JSForm]} superForm -- the super form that will extended from, see JSform.setExtendsForm(); {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSForm] -- a new JSForm object{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Creates a new form with the given JSForm as its super form.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – The name of the new form
{JSForm} superForm – the super form that will extended from, see JSform.setExtendsForm();
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSForm – a new JSForm object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//creates 2 forms with elements on them; shows the parent form, waits 2 seconds and shows the child form
var mySuperForm = solutionModel.newForm('mySuperForm', 'db:/my_server/my_table', null, false, 800, 600);
var label1 = mySuperForm.newLabel('LabelName', 20, 20, 120, 30);
label1.text = 'DataProvider';
label1.background = 'red';
mySuperForm.newTextField('myDataProvider', 140, 20, 140,20);
forms['mySuperForm'].controller.show();
application.sleep(2000);
var mySubForm = solutionModel.newForm('mySubForm', mySuperForm);
var label2 = mySuperForm.newLabel('SubForm Label', 20, 120, 120, 30);
label2.background = 'green';
forms['mySuperForm'].controller.recreateUI();
forms['mySubForm'].controller.show();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idnewForm-String_String_String_Boolean_Number_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.newForm{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
newForm
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSForm
]{span}{span:style=
Span
stylefont-weight:
bold;
}
newForm
{span}{span}\
Span
(name,
dataSource,
styleName,
show_in_menu,
width,
height)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Creates a new JSForm Object. NOTE: See the JSForm node for more information about form objects that can be added to the new form.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- the specified name of the form \{[String]} dataSource -- the specified name of the datasource for the specified table \{[String]} styleName -- the specified style \{[Boolean]} show_in_menu -- if true show the name of the new form in the menu; or false for not showing \{[Number]} width -- the width of the form in pixels \{[Number]} height -- the height of the form in pixels {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSForm] -- a new JSForm object{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Creates a new JSForm Object.

NOTE: See the JSForm node for more information about form objects that can be added to the new form.

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – the specified name of the form
{String} dataSource – the specified name of the datasource for the specified table
{String} styleName – the specified style
{Boolean} show_in_menu – if true show the name of the new form in the menu; or false for not showing
{Number} width – the width of the form in pixels
{Number} height – the height of the form in pixels
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSForm – a new JSForm object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var myForm = solutionModel.newForm('newForm', 'db:/my_server/my_table', 'myStyleName', false, 800, 600)
//now you can add stuff to the form (under JSForm node)
//add a label
myForm.newLabel('Name', 20, 20, 120, 30)
//add a "normal" text entry field
myForm.newTextField('dataProviderNameHere', 140, 20, 140,20)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idnewForm-String_String_String_String_Boolean_Number_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.newForm{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
newForm
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSForm
]{span}{span:style=
Span
stylefont-weight:
bold;
}
newForm
{span}{span}\
Span
(name,
serverName,
tableName,
styleName,
show_in_menu,
width,
height)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Creates a new JSForm Object. NOTE: See the JSForm node for more information about form objects that can be added to the new form.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- the specified name of the form \{[String]} serverName -- the specified name of the server for the specified table \{[String]} tableName -- the specified name of the table \{[String]} styleName -- the specified style \{[Boolean]} show_in_menu -- if true show the name of the new form in the menu; or false for not showing \{[Number]} width -- the width of the form in pixels \{[Number]} height -- the height of the form in pixels {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSForm] -- a new JSForm object{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Creates a new JSForm Object.

NOTE: See the JSForm node for more information about form objects that can be added to the new form.

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – the specified name of the form
{String} serverName – the specified name of the server for the specified table
{String} tableName – the specified name of the table
{String} styleName – the specified style
{Boolean} show_in_menu – if true show the name of the new form in the menu; or false for not showing
{Number} width – the width of the form in pixels
{Number} height – the height of the form in pixels
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSForm – a new JSForm object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var myForm = solutionModel.newForm('newForm', 'my_server', 'my_table', 'myStyleName', false, 800, 600)
//With only a datasource:
//var myForm = solutionModel.newForm('newForm', datasource, 'myStyleName', false, 800, 600)
//now you can add stuff to the form (under JSForm node)
//add a label
myForm.newLabel('Name', 20, 20, 120, 30)
//add a "normal" text entry field
myForm.newTextField('dataProviderNameHere', 140, 20, 140,20)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idnewGlobalMethod-String_String
}{
Table Row (tr)
: