{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{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:padding=0px|width=80px}{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 (JSComponent/JSField/JSLabel), gives it a new name and moves it to a new parent form, specified as a parameter.{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]{td}{td}[#cloneForm]\(newName, jsForm)
Makes an exact copy of the given form and gives it the new name.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createBevelBorder]\(bevel_type, highlight_outer_color, highlight_inner_color, shadow_outer_color, shadow_inner_color)
Create a bevel border string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createEmptyBorder]\(top_width, right_width, bottom_width, left_width)
Create an empty border string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createEtchedBorder]\(bevel_type, highlight_color, shadow_color)
Create an etched border string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createFont]\(name, style, size)
Create a font string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createLineBorder]\(thick, color)
Create a line border string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createMatteBorder]\(top_width, right_width, bottom_width, left_width, color)
Create a matte border string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createPageFormat]\(width, height, leftmargin, rightmargin, topmargin, bottommargin)
Create a page format string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createPageFormat]\(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation)
Create a page format string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createPageFormat]\(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation, units)
Create a page format string.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#createTitledBorder]\(title_text, font, color, title_justification, title_position)
Create a titled border string.{td}{tr}{tbody}{tbody}{tr}{td}[JSDataSourceNode]{td}{td}[#getDataSourceNode]\(dataSource)
Gets the specified data source node and returns information about the form (see JSDataSourceNode node).{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]{td}{td}[#getForm]\(name)
Gets the specified form object and returns information about the form (see JSForm node).{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]\[]{td}{td}[#getForms]\()
Get an array of all forms.{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]\[]{td}{td}[#getForms]\(datasource)
Get an array of forms, that are all based on datasource/servername.{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]\[]{td}{td}[#getForms]\(server, tablename)
Get an array of forms, that are all based on datasource/servername and tablename.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#getGlobalMethod]\(scopeName, name)
Gets an existing global method by the specified name.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]\[]{td}{td}[#getGlobalMethods]\()
The list of all global methods.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]\[]{td}{td}[#getGlobalMethods]\(scopeName)
The list of all global methods.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariable]{td}{td}[#getGlobalVariable]\(scopeName, name)
Gets an existing global variable by the specified name.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariable]\[]{td}{td}[#getGlobalVariables]\()
Gets an array of all global variables.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariable]\[]{td}{td}[#getGlobalVariables]\(scopeName)
Gets an array of all global variables.{td}{tr}{tbody}{tbody}{tr}{td}[JSMedia]{td}{td}[#getMedia]\(name)
Gets the specified media object; can be assigned to a button/label.{td}{tr}{tbody}{tbody}{tr}{td}[JSMedia]\[]{td}{td}[#getMediaList]\()
Gets the list of all media objects.{td}{tr}{tbody}{tbody}{tr}{td}[JSRelation]{td}{td}[#getRelation]\(name)
Gets an existing relation by the specified name and returns a JSRelation Object.{td}{tr}{tbody}{tbody}{tr}{td}[JSRelation]\[]{td}{td}[#getRelations]\(datasource)
Gets an array of all relations; or an array of all global relations if the specified table is NULL.{td}{tr}{tbody}{tbody}{tr}{td}[JSRelation]\[]{td}{td}[#getRelations]\(servername, tablename)
Gets an array of all relations; or an array of all global relations if the specified table is NULL.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getScopeNames]\()
Gets an array of all scope names used.{td}{tr}{tbody}{tbody}{tr}{td}[JSStyle]{td}{td}[#getStyle]\(name)
Gets the style specified by the given name.{td}{tr}{tbody}{tbody}{tr}{td}[JSValueList]{td}{td}[#getValueList]\(name)
Gets an existing valuelist by the specified name and returns a JSValueList Object that can be assigned to a field.{td}{tr}{tbody}{tbody}{tr}{td}[JSValueList]\[]{td}{td}[#getValueLists]\()
Gets an array of all valuelists for the currently active solution.{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]{td}{td}[#newForm]\(name, superForm)
Creates a new form with the given JSForm as its super form.{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]{td}{td}[#newForm]\(name, dataSource, styleName, show_in_menu, width, height)
Creates a new JSForm Object.{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]{td}{td}[#newForm]\(name, serverName, tableName, styleName, show_in_menu, width, height)
Creates a new JSForm Object.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#newGlobalMethod]\(scopeName, code)
Creates a new global method with the specified code in a scope.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariable]{td}{td}[#newGlobalVariable]\(scopeName, name, type)
Creates a new global variable with the specified name and number type.{td}{tr}{tbody}{tbody}{tr}{td}[JSMedia]{td}{td}[#newMedia]\(name, bytes)
Creates a new media object that can be assigned to a label or a button.{td}{tr}{tbody}{tbody}{tr}{td}[JSRelation]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}[JSStyle]{td}{td}[#newStyle]\(name, content)
Creates a new style with the given css content string under the given name.{td}{tr}{tbody}{tbody}{tr}{td}[JSValueList]{td}{td}[#newValueList]\(name, type)
Creates a new valuelist with the specified name and number type.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeForm]\(name)
Removes the specified form during the persistent connected client session.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeGlobalMethod]\(scopeName, name)
Removes the specified global method.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeGlobalVariable]\(scopeName, name)
Removes the specified global variable.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeMedia]\(name)
Removes the media item specified by name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeRelation]\(name)
Removes the relation specified by name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeStyle]\(name)
Removes the specified style.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeValueList]\(name)
Removes the specified valuelist.{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#wrapMethodWithArguments]\(method, args)
Get a JSMethod instance with arguments to be assigned to an event.{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=cloneComponent-String_JSComponent|class=node}{tr:id=name}{td}h6.cloneComponent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSComponent]{span}{span:id=iets|style=float: left; font-weight: bold;}cloneComponent{span}{span:id=iets|style=float: left;}\(newName, component){span}{td}{tr}{tr:id=des}{td}{sub-section:cloneComponent-String_JSComponent_des|text=|trigger=button}{sub-section}{sub-section:cloneComponent-String_JSComponent_des|trigger=none|class=sIndent}Makes an exact copy of the given component (JSComponent/JSField/JSLabel) and gives it a new name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:cloneComponent-String_JSComponent_snc|text=|trigger=button}{sub-section}{sub-section:cloneComponent-String_JSComponent_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:cloneComponent-String_JSComponent_prs|text=|trigger=button}{sub-section}{sub-section:cloneComponent-String_JSComponent_prs|trigger=none|class=sIndent}\{[String]} newName -- the new name of the cloned component
\{[JSComponent]} component -- the component to clone
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:cloneComponent-String_JSComponent_ret|text=|trigger=button}{sub-section}{sub-section:cloneComponent-String_JSComponent_ret|trigger=none|class=sIndent}[JSComponent] -- the exact copy of the given component{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:cloneComponent-String_JSComponent_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:cloneComponent-String_JSComponent_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:cloneComponent-String_JSComponent_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:cloneComponent-String_JSComponent_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:cloneComponent-String_JSComponent_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:cloneComponent-String_JSComponent_sam|trigger=none}{code:language=javascript}
// 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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=cloneComponent-String_JSComponent_JSForm|class=node}{tr:id=name}{td}h6.cloneComponent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSComponent]{span}{span:id=iets|style=float: left; font-weight: bold;}cloneComponent{span}{span:id=iets|style=float: left;}\(newName, component, newParentForm){span}{td}{tr}{tr:id=des}{td}{sub-section:cloneComponent-String_JSComponent_JSForm_des|text=|trigger=button}{sub-section}{sub-section:cloneComponent-String_JSComponent_JSForm_des|trigger=none|class=sIndent}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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:cloneComponent-String_JSComponent_JSForm_snc|text=|trigger=button}{sub-section}{sub-section:cloneComponent-String_JSComponent_JSForm_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:cloneComponent-String_JSComponent_JSForm_prs|text=|trigger=button}{sub-section}{sub-section:cloneComponent-String_JSComponent_JSForm_prs|trigger=none|class=sIndent}\{[String]} newName -- the new name of the cloned component
\{[JSComponent]} component -- the component to clone
\{[JSForm]} newParentForm -- the new parent form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:cloneComponent-String_JSComponent_JSForm_ret|text=|trigger=button}{sub-section}{sub-section:cloneComponent-String_JSComponent_JSForm_ret|trigger=none|class=sIndent}[JSComponent] -- the exact copy of the given component{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:cloneComponent-String_JSComponent_JSForm_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:cloneComponent-String_JSComponent_JSForm_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:cloneComponent-String_JSComponent_JSForm_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:cloneComponent-String_JSComponent_JSForm_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:cloneComponent-String_JSComponent_JSForm_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:cloneComponent-String_JSComponent_JSForm_sam|trigger=none}{code:language=javascript}
// 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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=cloneForm|class=node}{tr:id=name}{td}h6.cloneForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSForm]{span}{span:id=iets|style=float: left; font-weight: bold;}cloneForm{span}{span:id=iets|style=float: left;}\(newName, jsForm){span}{td}{tr}{tr:id=des}{td}{sub-section:cloneForm_des|text=|trigger=button}{sub-section}{sub-section:cloneForm_des|trigger=none|class=sIndent}Makes an exact copy of the given form and gives it the new name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:cloneForm_snc|text=|trigger=button}{sub-section}{sub-section:cloneForm_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:cloneForm_prs|text=|trigger=button}{sub-section}{sub-section:cloneForm_prs|trigger=none|class=sIndent}\{[String]} newName -- the new name for the form clone
\{[JSForm]} jsForm -- the form to be cloned
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:cloneForm_ret|text=|trigger=button}{sub-section}{sub-section:cloneForm_ret|trigger=none|class=sIndent}[JSForm] -- a JSForm{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:cloneForm_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:cloneForm_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:cloneForm_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:cloneForm_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:cloneForm_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:cloneForm_sam|trigger=none}{code:language=javascript}
// 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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createBevelBorder|class=node}{tr:id=name}{td}h6.createBevelBorder{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createBevelBorder{span}{span:id=iets|style=float: left;}\(bevel_type, highlight_outer_color, highlight_inner_color, shadow_outer_color, shadow_inner_color){span}{td}{tr}{tr:id=des}{td}{sub-section:createBevelBorder_des|text=|trigger=button}{sub-section}{sub-section:createBevelBorder_des|trigger=none|class=sIndent}Create a bevel border string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createBevelBorder_snc|text=|trigger=button}{sub-section}{sub-section:createBevelBorder_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createBevelBorder_prs|text=|trigger=button}{sub-section}{sub-section:createBevelBorder_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createBevelBorder_ret|text=|trigger=button}{sub-section}{sub-section:createBevelBorder_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createBevelBorder_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createBevelBorder_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createBevelBorder_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createBevelBorder_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createBevelBorder_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createBevelBorder_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createBevelBorder(SM_BEVELTYPE.RAISED,'#ff0000','#00ff00','#ff0000','#00ff00');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createEmptyBorder|class=node}{tr:id=name}{td}h6.createEmptyBorder{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createEmptyBorder{span}{span:id=iets|style=float: left;}\(top_width, right_width, bottom_width, left_width){span}{td}{tr}{tr:id=des}{td}{sub-section:createEmptyBorder_des|text=|trigger=button}{sub-section}{sub-section:createEmptyBorder_des|trigger=none|class=sIndent}Create an empty border string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createEmptyBorder_snc|text=|trigger=button}{sub-section}{sub-section:createEmptyBorder_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createEmptyBorder_prs|text=|trigger=button}{sub-section}{sub-section:createEmptyBorder_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createEmptyBorder_ret|text=|trigger=button}{sub-section}{sub-section:createEmptyBorder_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createEmptyBorder_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createEmptyBorder_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createEmptyBorder_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createEmptyBorder_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createEmptyBorder_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createEmptyBorder_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createEmptyBorder(1,1,1,1);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createEtchedBorder|class=node}{tr:id=name}{td}h6.createEtchedBorder{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createEtchedBorder{span}{span:id=iets|style=float: left;}\(bevel_type, highlight_color, shadow_color){span}{td}{tr}{tr:id=des}{td}{sub-section:createEtchedBorder_des|text=|trigger=button}{sub-section}{sub-section:createEtchedBorder_des|trigger=none|class=sIndent}Create an etched border string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createEtchedBorder_snc|text=|trigger=button}{sub-section}{sub-section:createEtchedBorder_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createEtchedBorder_prs|text=|trigger=button}{sub-section}{sub-section:createEtchedBorder_prs|trigger=none|class=sIndent}\{[Number]} bevel_type -- bevel border type
\{[String]} highlight_color -- bevel border highlight color
\{[String]} shadow_color -- bevel border shadow color
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createEtchedBorder_ret|text=|trigger=button}{sub-section}{sub-section:createEtchedBorder_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createEtchedBorder_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createEtchedBorder_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createEtchedBorder_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createEtchedBorder_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createEtchedBorder_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createEtchedBorder_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createEtchedBorder(SM_BEVELTYPE.RAISED,'#ff0000','#00ff00');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createFont|class=node}{tr:id=name}{td}h6.createFont{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createFont{span}{span:id=iets|style=float: left;}\(name, style, size){span}{td}{tr}{tr:id=des}{td}{sub-section:createFont_des|text=|trigger=button}{sub-section}{sub-section:createFont_des|trigger=none|class=sIndent}Create a font string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createFont_snc|text=|trigger=button}{sub-section}{sub-section:createFont_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createFont_prs|text=|trigger=button}{sub-section}{sub-section:createFont_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createFont_ret|text=|trigger=button}{sub-section}{sub-section:createFont_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createFont_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createFont_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createFont_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createFont_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createFont_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createFont_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("someForm");
var component = form.getComponent("someComponent")
component.fontType = solutionModel.createFont('Arial',SM_FONTSTYLE.BOLD,14);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createLineBorder|class=node}{tr:id=name}{td}h6.createLineBorder{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createLineBorder{span}{span:id=iets|style=float: left;}\(thick, color){span}{td}{tr}{tr:id=des}{td}{sub-section:createLineBorder_des|text=|trigger=button}{sub-section}{sub-section:createLineBorder_des|trigger=none|class=sIndent}Create a line border string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createLineBorder_snc|text=|trigger=button}{sub-section}{sub-section:createLineBorder_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createLineBorder_prs|text=|trigger=button}{sub-section}{sub-section:createLineBorder_prs|trigger=none|class=sIndent}\{[Number]} thick -- border thickness in pixels
\{[String]} color -- color of the line border
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createLineBorder_ret|text=|trigger=button}{sub-section}{sub-section:createLineBorder_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createLineBorder_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createLineBorder_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createLineBorder_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createLineBorder_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createLineBorder_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createLineBorder_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createLineBorder(1,'#ff0000');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createMatteBorder|class=node}{tr:id=name}{td}h6.createMatteBorder{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createMatteBorder{span}{span:id=iets|style=float: left;}\(top_width, right_width, bottom_width, left_width, color){span}{td}{tr}{tr:id=des}{td}{sub-section:createMatteBorder_des|text=|trigger=button}{sub-section}{sub-section:createMatteBorder_des|trigger=none|class=sIndent}Create a matte border string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createMatteBorder_snc|text=|trigger=button}{sub-section}{sub-section:createMatteBorder_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createMatteBorder_prs|text=|trigger=button}{sub-section}{sub-section:createMatteBorder_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createMatteBorder_ret|text=|trigger=button}{sub-section}{sub-section:createMatteBorder_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createMatteBorder_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createMatteBorder_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createMatteBorder_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createMatteBorder_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createMatteBorder_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createMatteBorder_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createMatteBorder(1,1,1,1,"#00ff00");
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createPageFormat-Number_Number_Number_Number_Number_Number|class=node}{tr:id=name}{td}h6.createPageFormat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createPageFormat{span}{span:id=iets|style=float: left;}\(width, height, leftmargin, rightmargin, topmargin, bottommargin){span}{td}{tr}{tr:id=des}{td}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_des|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_des|trigger=none|class=sIndent}Create a page format string.

Note: The unit specified for width, height and all margins MUST be the same.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_snc|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_prs|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_prs|trigger=none|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.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_ret|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("someForm");
form.defaultPageFormat = solutionModel.createPageFormat(612,792,72,72,72,72,SM_ORIENTATION.PORTRAIT,SM_UNITS.PIXELS);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createPageFormat-Number_Number_Number_Number_Number_Number_Number|class=node}{tr:id=name}{td}h6.createPageFormat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createPageFormat{span}{span:id=iets|style=float: left;}\(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation){span}{td}{tr}{tr:id=des}{td}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_des|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_des|trigger=none|class=sIndent}Create a page format string.

Note: The unit specified for width, height and all margins MUST be the same.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_snc|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_prs|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_ret|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("someForm");
form.defaultPageFormat = solutionModel.createPageFormat(612,792,72,72,72,72,SM_ORIENTATION.PORTRAIT,SM_UNITS.PIXELS);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number|class=node}{tr:id=name}{td}h6.createPageFormat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createPageFormat{span}{span:id=iets|style=float: left;}\(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation, units){span}{td}{tr}{tr:id=des}{td}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_des|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_des|trigger=none|class=sIndent}Create a page format string.

Note: The unit specified for width, height and all margins MUST be the same.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_snc|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_prs|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_ret|text=|trigger=button}{sub-section}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("someForm");
form.defaultPageFormat = solutionModel.createPageFormat(612,792,72,72,72,72,SM_ORIENTATION.PORTRAIT,SM_UNITS.PIXELS);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createRoundedBorder|class=node}{tr:id=name}{td}h6.createRoundedBorder{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createRoundedBorder{span}{span:id=iets|style=float: left;}\(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}{sub-section:createRoundedBorder_des|text=|trigger=button}{sub-section}{sub-section:createRoundedBorder_des|trigger=none|class=sIndent}Create a special matte border string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createRoundedBorder_snc|text=|trigger=button}{sub-section}{sub-section:createRoundedBorder_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createRoundedBorder_prs|text=|trigger=button}{sub-section}{sub-section:createRoundedBorder_prs|trigger=none|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 margins(top/left/bottom/left)
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createRoundedBorder_ret|text=|trigger=button}{sub-section}{sub-section:createRoundedBorder_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createRoundedBorder_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createRoundedBorder_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createRoundedBorder_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createRoundedBorder_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createRoundedBorder_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createRoundedBorder_sam|trigger=none}{code:language=javascript}
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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createSpecialMatteBorder|class=node}{tr:id=name}{td}h6.createSpecialMatteBorder{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createSpecialMatteBorder{span}{span:id=iets|style=float: left;}\(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}{sub-section:createSpecialMatteBorder_des|text=|trigger=button}{sub-section}{sub-section:createSpecialMatteBorder_des|trigger=none|class=sIndent}Create a special matte border string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createSpecialMatteBorder_snc|text=|trigger=button}{sub-section}{sub-section:createSpecialMatteBorder_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createSpecialMatteBorder_prs|text=|trigger=button}{sub-section}{sub-section:createSpecialMatteBorder_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createSpecialMatteBorder_ret|text=|trigger=button}{sub-section}{sub-section:createSpecialMatteBorder_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createSpecialMatteBorder_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createSpecialMatteBorder_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createSpecialMatteBorder_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createSpecialMatteBorder_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createSpecialMatteBorder_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createSpecialMatteBorder_sam|trigger=none}{code:language=javascript}
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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createTitledBorder|class=node}{tr:id=name}{td}h6.createTitledBorder{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}createTitledBorder{span}{span:id=iets|style=float: left;}\(title_text, font, color, title_justification, title_position){span}{td}{tr}{tr:id=des}{td}{sub-section:createTitledBorder_des|text=|trigger=button}{sub-section}{sub-section:createTitledBorder_des|trigger=none|class=sIndent}Create a titled border string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createTitledBorder_snc|text=|trigger=button}{sub-section}{sub-section:createTitledBorder_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createTitledBorder_prs|text=|trigger=button}{sub-section}{sub-section:createTitledBorder_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createTitledBorder_ret|text=|trigger=button}{sub-section}{sub-section:createTitledBorder_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createTitledBorder_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createTitledBorder_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createTitledBorder_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createTitledBorder_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createTitledBorder_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createTitledBorder_sam|trigger=none}{code:language=javascript}
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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getDataSourceNode|class=node}{tr:id=name}{td}h6.getDataSourceNode{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSDataSourceNode]{span}{span:id=iets|style=float: left; font-weight: bold;}getDataSourceNode{span}{span:id=iets|style=float: left;}\(dataSource){span}{td}{tr}{tr:id=des}{td}{sub-section:getDataSourceNode_des|text=|trigger=button}{sub-section}{sub-section:getDataSourceNode_des|trigger=none|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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getDataSourceNode_snc|text=|trigger=button}{sub-section}{sub-section:getDataSourceNode_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getDataSourceNode_prs|text=|trigger=button}{sub-section}{sub-section:getDataSourceNode_prs|trigger=none|class=sIndent}\{[String]} dataSource -- table data source
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getDataSourceNode_ret|text=|trigger=button}{sub-section}{sub-section:getDataSourceNode_ret|trigger=none|class=sIndent}[JSDataSourceNode] -- a JSDataSourceNode{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getDataSourceNode_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getDataSourceNode_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getDataSourceNode_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getDataSourceNode_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getDataSourceNode_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getDataSourceNode_sam|trigger=none}{code:language=javascript}
var dsnode = solutionModel.getDataSourceNode('db:/example_data/customers');
var c = dsnode.getCalculation("myCalculation");
application.output("Name: " + c.getName() + ", Stored: " + c.isStored());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getForm|class=node}{tr:id=name}{td}h6.getForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSForm]{span}{span:id=iets|style=float: left; font-weight: bold;}getForm{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:getForm_des|text=|trigger=button}{sub-section}{sub-section:getForm_des|trigger=none|class=sIndent}Gets the specified form object and returns information about the form (see JSForm node).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getForm_snc|text=|trigger=button}{sub-section}{sub-section:getForm_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getForm_prs|text=|trigger=button}{sub-section}{sub-section:getForm_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getForm_ret|text=|trigger=button}{sub-section}{sub-section:getForm_ret|trigger=none|class=sIndent}[JSForm] -- a JSForm{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getForm_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForm_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getForm_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForm_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getForm_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForm_sam|trigger=none}{code:language=javascript}
var myForm = solutionModel.getForm('existingFormName');
//get the style of the form (for all other properties see JSForm node)
var styleName = myForm.styleName;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getForms|class=node}{tr:id=name}{td}h6.getForms{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSForm]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getForms{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getForms_des|text=|trigger=button}{sub-section}{sub-section:getForms_des|trigger=none|class=sIndent}Get an array of all forms.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getForms_snc|text=|trigger=button}{sub-section}{sub-section:getForms_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getForms_prs|text=|trigger=button}{sub-section}{sub-section:getForms_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getForms_ret|text=|trigger=button}{sub-section}{sub-section:getForms_ret|trigger=none|class=sIndent}[JSForm]\[] -- an array of JSForm type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getForms_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForms_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getForms_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForms_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getForms_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForms_sam|trigger=none}{code:language=javascript}
var forms = solutionModel.getForms()
for (var i in forms)
	application.output(forms[i].name)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getForms-String|class=node}{tr:id=name}{td}h6.getForms{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSForm]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getForms{span}{span:id=iets|style=float: left;}\(datasource){span}{td}{tr}{tr:id=des}{td}{sub-section:getForms-String_des|text=|trigger=button}{sub-section}{sub-section:getForms-String_des|trigger=none|class=sIndent}Get an array of forms, that are all based on datasource/servername.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getForms-String_snc|text=|trigger=button}{sub-section}{sub-section:getForms-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getForms-String_prs|text=|trigger=button}{sub-section}{sub-section:getForms-String_prs|trigger=none|class=sIndent}\{[String]} datasource -- the datasource or servername
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getForms-String_ret|text=|trigger=button}{sub-section}{sub-section:getForms-String_ret|trigger=none|class=sIndent}[JSForm]\[] -- an array of JSForm type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getForms-String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForms-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getForms-String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForms-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getForms-String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForms-String_sam|trigger=none}{code:language=javascript}
var forms = solutionModel.getForms(datasource)
for (var i in forms)
	application.output(forms[i].name)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getForms-String_String|class=node}{tr:id=name}{td}h6.getForms{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSForm]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getForms{span}{span:id=iets|style=float: left;}\(server, tablename){span}{td}{tr}{tr:id=des}{td}{sub-section:getForms-String_String_des|text=|trigger=button}{sub-section}{sub-section:getForms-String_String_des|trigger=none|class=sIndent}Get an array of forms, that are all based on datasource/servername and tablename.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getForms-String_String_snc|text=|trigger=button}{sub-section}{sub-section:getForms-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getForms-String_String_prs|text=|trigger=button}{sub-section}{sub-section:getForms-String_String_prs|trigger=none|class=sIndent}\{[String]} server -- the datasource or servername
\{[String]} tablename -- the tablename
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getForms-String_String_ret|text=|trigger=button}{sub-section}{sub-section:getForms-String_String_ret|trigger=none|class=sIndent}[JSForm]\[] -- an array of JSForm type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getForms-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForms-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getForms-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForms-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getForms-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getForms-String_String_sam|trigger=none}{code:language=javascript}
var forms = solutionModel.getForms(datasource,tablename)
for (var i in forms)
	application.output(forms[i].name)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalMethod-String_String|class=node}{tr:id=name}{td}h6.getGlobalMethod{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMethod]{span}{span:id=iets|style=float: left; font-weight: bold;}getGlobalMethod{span}{span:id=iets|style=float: left;}\(scopeName, name){span}{td}{tr}{tr:id=des}{td}{sub-section:getGlobalMethod-String_String_des|text=|trigger=button}{sub-section}{sub-section:getGlobalMethod-String_String_des|trigger=none|class=sIndent}Gets an existing global method by the specified name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getGlobalMethod-String_String_snc|text=|trigger=button}{sub-section}{sub-section:getGlobalMethod-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getGlobalMethod-String_String_prs|text=|trigger=button}{sub-section}{sub-section:getGlobalMethod-String_String_prs|trigger=none|class=sIndent}\{[String]} scopeName -- the scope in which the method is searched
\{[String]} name -- the name of the specified global method
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getGlobalMethod-String_String_ret|text=|trigger=button}{sub-section}{sub-section:getGlobalMethod-String_String_ret|trigger=none|class=sIndent}[JSMethod] -- a JSMethod{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getGlobalMethod-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethod-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getGlobalMethod-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethod-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getGlobalMethod-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethod-String_String_sam|trigger=none}{code:language=javascript}
var method = solutionModel.getGlobalMethod('globals', 'nameOfGlobalMethod'); 
if (method != null) application.output(method.code);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalMethods|class=node}{tr:id=name}{td}h6.getGlobalMethods{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMethod]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getGlobalMethods{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getGlobalMethods_des|text=|trigger=button}{sub-section}{sub-section:getGlobalMethods_des|trigger=none|class=sIndent}The list of all global methods.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getGlobalMethods_snc|text=|trigger=button}{sub-section}{sub-section:getGlobalMethods_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getGlobalMethods_prs|text=|trigger=button}{sub-section}{sub-section:getGlobalMethods_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getGlobalMethods_ret|text=|trigger=button}{sub-section}{sub-section:getGlobalMethods_ret|trigger=none|class=sIndent}[JSMethod]\[] -- an array of JSMethod type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getGlobalMethods_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getGlobalMethods_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getGlobalMethods_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods_sam|trigger=none}{code:language=javascript}
var methods = solutionModel.getGlobalMethods('globals'); 
for (var x in methods) 
	application.output(methods[x].getName());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalMethods-String|class=node}{tr:id=name}{td}h6.getGlobalMethods{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMethod]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getGlobalMethods{span}{span:id=iets|style=float: left;}\(scopeName){span}{td}{tr}{tr:id=des}{td}{sub-section:getGlobalMethods-String_des|text=|trigger=button}{sub-section}{sub-section:getGlobalMethods-String_des|trigger=none|class=sIndent}The list of all global methods.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getGlobalMethods-String_snc|text=|trigger=button}{sub-section}{sub-section:getGlobalMethods-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getGlobalMethods-String_prs|text=|trigger=button}{sub-section}{sub-section:getGlobalMethods-String_prs|trigger=none|class=sIndent}\{[String]} scopeName -- limit to global methods of specified scope name
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getGlobalMethods-String_ret|text=|trigger=button}{sub-section}{sub-section:getGlobalMethods-String_ret|trigger=none|class=sIndent}[JSMethod]\[] -- an array of JSMethod type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getGlobalMethods-String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getGlobalMethods-String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getGlobalMethods-String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods-String_sam|trigger=none}{code:language=javascript}
var methods = solutionModel.getGlobalMethods('globals'); 
for (var x in methods) 
	application.output(methods[x].getName());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalVariable-String_String|class=node}{tr:id=name}{td}h6.getGlobalVariable{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSVariable]{span}{span:id=iets|style=float: left; font-weight: bold;}getGlobalVariable{span}{span:id=iets|style=float: left;}\(scopeName, name){span}{td}{tr}{tr:id=des}{td}{sub-section:getGlobalVariable-String_String_des|text=|trigger=button}{sub-section}{sub-section:getGlobalVariable-String_String_des|trigger=none|class=sIndent}Gets an existing global variable by the specified name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getGlobalVariable-String_String_snc|text=|trigger=button}{sub-section}{sub-section:getGlobalVariable-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getGlobalVariable-String_String_prs|text=|trigger=button}{sub-section}{sub-section:getGlobalVariable-String_String_prs|trigger=none|class=sIndent}\{[String]} scopeName -- the scope in which the variable is searched
\{[String]} name -- the specified name of the global variable
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getGlobalVariable-String_String_ret|text=|trigger=button}{sub-section}{sub-section:getGlobalVariable-String_String_ret|trigger=none|class=sIndent}[JSVariable] -- a JSVariable{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getGlobalVariable-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariable-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getGlobalVariable-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariable-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getGlobalVariable-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariable-String_String_sam|trigger=none}{code:language=javascript}
var globalVariable = solutionModel.getGlobalVariable('globals', 'globalVariableName');
application.output(globalVariable.name + " has the default value of " + globalVariable.defaultValue);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalVariables|class=node}{tr:id=name}{td}h6.getGlobalVariables{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSVariable]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getGlobalVariables{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getGlobalVariables_des|text=|trigger=button}{sub-section}{sub-section:getGlobalVariables_des|trigger=none|class=sIndent}Gets an array of all global variables.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getGlobalVariables_snc|text=|trigger=button}{sub-section}{sub-section:getGlobalVariables_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getGlobalVariables_prs|text=|trigger=button}{sub-section}{sub-section:getGlobalVariables_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getGlobalVariables_ret|text=|trigger=button}{sub-section}{sub-section:getGlobalVariables_ret|trigger=none|class=sIndent}[JSVariable]\[] -- an array of JSVariable type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getGlobalVariables_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getGlobalVariables_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getGlobalVariables_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables_sam|trigger=none}{code:language=javascript}
var globalVariables = solutionModel.getGlobalVariables('globals');
for (var i in globalVariables)
	application.output(globalVariables[i].name + " has the default value of " + globalVariables[i].defaultValue);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getGlobalVariables-String|class=node}{tr:id=name}{td}h6.getGlobalVariables{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSVariable]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getGlobalVariables{span}{span:id=iets|style=float: left;}\(scopeName){span}{td}{tr}{tr:id=des}{td}{sub-section:getGlobalVariables-String_des|text=|trigger=button}{sub-section}{sub-section:getGlobalVariables-String_des|trigger=none|class=sIndent}Gets an array of all global variables.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getGlobalVariables-String_snc|text=|trigger=button}{sub-section}{sub-section:getGlobalVariables-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getGlobalVariables-String_prs|text=|trigger=button}{sub-section}{sub-section:getGlobalVariables-String_prs|trigger=none|class=sIndent}\{[String]} scopeName -- limit to global vars of specified scope name
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getGlobalVariables-String_ret|text=|trigger=button}{sub-section}{sub-section:getGlobalVariables-String_ret|trigger=none|class=sIndent}[JSVariable]\[] -- an array of JSVariable type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getGlobalVariables-String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getGlobalVariables-String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getGlobalVariables-String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables-String_sam|trigger=none}{code:language=javascript}
var globalVariables = solutionModel.getGlobalVariables('globals');
for (var i in globalVariables)
	application.output(globalVariables[i].name + " has the default value of " + globalVariables[i].defaultValue);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMedia|class=node}{tr:id=name}{td}h6.getMedia{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMedia]{span}{span:id=iets|style=float: left; font-weight: bold;}getMedia{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:getMedia_des|text=|trigger=button}{sub-section}{sub-section:getMedia_des|trigger=none|class=sIndent}Gets the specified media object; can be assigned to a button/label.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getMedia_snc|text=|trigger=button}{sub-section}{sub-section:getMedia_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getMedia_prs|text=|trigger=button}{sub-section}{sub-section:getMedia_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the media object
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getMedia_ret|text=|trigger=button}{sub-section}{sub-section:getMedia_ret|trigger=none|class=sIndent}[JSMedia] -- a JSMedia element{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getMedia_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMedia_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getMedia_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMedia_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getMedia_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMedia_sam|trigger=none}{code:language=javascript}
var myMedia = solutionModel.getMedia('button01.gif')
//now set the imageMedia property of your label or button
//myButton.imageMedia = myMedia
// OR
//myLabel.imageMedia = myMedia
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMediaList|class=node}{tr:id=name}{td}h6.getMediaList{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMedia]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getMediaList{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getMediaList_des|text=|trigger=button}{sub-section}{sub-section:getMediaList_des|trigger=none|class=sIndent}Gets the list of all media objects.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getMediaList_snc|text=|trigger=button}{sub-section}{sub-section:getMediaList_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getMediaList_prs|text=|trigger=button}{sub-section}{sub-section:getMediaList_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getMediaList_ret|text=|trigger=button}{sub-section}{sub-section:getMediaList_ret|trigger=none|class=sIndent}[JSMedia]\[] -- a list with all the media objects.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getMediaList_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMediaList_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getMediaList_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMediaList_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getMediaList_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMediaList_sam|trigger=none}{code:language=javascript}
var mediaList = solutionModel.getMediaList();
if (mediaList.length != 0 && mediaList != null) {
	for (var x in mediaList) {
		application.output(mediaList[x]);
	}
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getRelation|class=node}{tr:id=name}{td}h6.getRelation{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSRelation]{span}{span:id=iets|style=float: left; font-weight: bold;}getRelation{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:getRelation_des|text=|trigger=button}{sub-section}{sub-section:getRelation_des|trigger=none|class=sIndent}Gets an existing relation by the specified name and returns a JSRelation Object.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getRelation_snc|text=|trigger=button}{sub-section}{sub-section:getRelation_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getRelation_prs|text=|trigger=button}{sub-section}{sub-section:getRelation_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the relation
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getRelation_ret|text=|trigger=button}{sub-section}{sub-section:getRelation_ret|trigger=none|class=sIndent}[JSRelation] -- a JSRelation{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getRelation_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRelation_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getRelation_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRelation_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getRelation_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRelation_sam|trigger=none}{code:language=javascript}
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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getRelations-String|class=node}{tr:id=name}{td}h6.getRelations{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSRelation]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getRelations{span}{span:id=iets|style=float: left;}\(datasource){span}{td}{tr}{tr:id=des}{td}{sub-section:getRelations-String_des|text=|trigger=button}{sub-section}{sub-section:getRelations-String_des|trigger=none|class=sIndent}Gets an array of all relations; or an array of all global relations if the specified table is NULL.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getRelations-String_snc|text=|trigger=button}{sub-section}{sub-section:getRelations-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getRelations-String_prs|text=|trigger=button}{sub-section}{sub-section:getRelations-String_prs|trigger=none|class=sIndent}\{[String]} datasource -- the specified name of the datasource for the specified table
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getRelations-String_ret|text=|trigger=button}{sub-section}{sub-section:getRelations-String_ret|trigger=none|class=sIndent}[JSRelation]\[] -- an array of all relations (all elements in the array are of type JSRelation){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getRelations-String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRelations-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getRelations-String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRelations-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getRelations-String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRelations-String_sam|trigger=none}{code:language=javascript}
var relations = solutionModel.getRelations('server_name','table_name');
if (relations.length != 0)
	for (var i in relations)
		application.output(relations[i].name);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getRelations-String_String|class=node}{tr:id=name}{td}h6.getRelations{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSRelation]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getRelations{span}{span:id=iets|style=float: left;}\(servername, tablename){span}{td}{tr}{tr:id=des}{td}{sub-section:getRelations-String_String_des|text=|trigger=button}{sub-section}{sub-section:getRelations-String_String_des|trigger=none|class=sIndent}Gets an array of all relations; or an array of all global relations if the specified table is NULL.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getRelations-String_String_snc|text=|trigger=button}{sub-section}{sub-section:getRelations-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getRelations-String_String_prs|text=|trigger=button}{sub-section}{sub-section:getRelations-String_String_prs|trigger=none|class=sIndent}\{[String]} servername -- the specified name of the server for the specified table
\{[String]} tablename -- the specified name of the table
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getRelations-String_String_ret|text=|trigger=button}{sub-section}{sub-section:getRelations-String_String_ret|trigger=none|class=sIndent}[JSRelation]\[] -- an array of all relations (all elements in the array are of type JSRelation){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getRelations-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRelations-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getRelations-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRelations-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getRelations-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRelations-String_String_sam|trigger=none}{code:language=javascript}
var relations = solutionModel.getRelations('server_name','table_name');
if (relations.length != 0)
	for (var i in relations)
		application.output(relations[i].name);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getScopeNames|class=node}{tr:id=name}{td}h6.getScopeNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getScopeNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getScopeNames_des|text=|trigger=button}{sub-section}{sub-section:getScopeNames_des|trigger=none|class=sIndent}Gets an array of all scope names used.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getScopeNames_snc|text=|trigger=button}{sub-section}{sub-section:getScopeNames_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getScopeNames_prs|text=|trigger=button}{sub-section}{sub-section:getScopeNames_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getScopeNames_ret|text=|trigger=button}{sub-section}{sub-section:getScopeNames_ret|trigger=none|class=sIndent}[String]\[] -- an array of String scope names{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getScopeNames_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getScopeNames_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getScopeNames_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getScopeNames_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getScopeNames_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getScopeNames_sam|trigger=none}{code:language=javascript}
var scopeNames = solutionModel.getScopeNames();
for (var name in scopeNames)
	application.output(name);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getStyle|class=node}{tr:id=name}{td}h6.getStyle{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSStyle]{span}{span:id=iets|style=float: left; font-weight: bold;}getStyle{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:getStyle_des|text=|trigger=button}{sub-section}{sub-section:getStyle_des|trigger=none|class=sIndent}Gets the style specified by the given name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getStyle_snc|text=|trigger=button}{sub-section}{sub-section:getStyle_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getStyle_prs|text=|trigger=button}{sub-section}{sub-section:getStyle_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the style
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getStyle_ret|text=|trigger=button}{sub-section}{sub-section:getStyle_ret|trigger=none|class=sIndent}[JSStyle] -- a JSStyle{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getStyle_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getStyle_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getStyle_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getStyle_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getStyle_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getStyle_sam|trigger=none}{code:language=javascript}
var style = solutionModel.getStyle('my_existing_style')
style.content = 'combobox { color: #0000ff;font: italic 10pt "Verdana";}'
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getValueList|class=node}{tr:id=name}{td}h6.getValueList{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSValueList]{span}{span:id=iets|style=float: left; font-weight: bold;}getValueList{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:getValueList_des|text=|trigger=button}{sub-section}{sub-section:getValueList_des|trigger=none|class=sIndent}Gets an existing valuelist by the specified name and returns a JSValueList Object that can be assigned to a field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getValueList_snc|text=|trigger=button}{sub-section}{sub-section:getValueList_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getValueList_prs|text=|trigger=button}{sub-section}{sub-section:getValueList_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the valuelist
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getValueList_ret|text=|trigger=button}{sub-section}{sub-section:getValueList_ret|trigger=none|class=sIndent}[JSValueList] -- a JSValueList object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getValueList_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getValueList_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getValueList_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getValueList_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getValueList_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getValueList_sam|trigger=none}{code:language=javascript}
var myValueList = solutionModel.getValueList('myValueListHere')
//now set the valueList property of your field
//myField.valuelist = myValueList
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getValueLists|class=node}{tr:id=name}{td}h6.getValueLists{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSValueList]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getValueLists{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getValueLists_des|text=|trigger=button}{sub-section}{sub-section:getValueLists_des|trigger=none|class=sIndent}Gets an array of all valuelists for the currently active solution.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getValueLists_snc|text=|trigger=button}{sub-section}{sub-section:getValueLists_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getValueLists_prs|text=|trigger=button}{sub-section}{sub-section:getValueLists_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getValueLists_ret|text=|trigger=button}{sub-section}{sub-section:getValueLists_ret|trigger=none|class=sIndent}[JSValueList]\[] -- an array of JSValueList objects{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getValueLists_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getValueLists_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getValueLists_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getValueLists_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getValueLists_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getValueLists_sam|trigger=none}{code:language=javascript}
var valueLists = solutionModel.getValueLists();
if (valueLists != null && valueLists.length != 0)
	for (var i in valueLists)
		application.output(valueLists[i].name);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newForm-String_JSForm|class=node}{tr:id=name}{td}h6.newForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSForm]{span}{span:id=iets|style=float: left; font-weight: bold;}newForm{span}{span:id=iets|style=float: left;}\(name, superForm){span}{td}{tr}{tr:id=des}{td}{sub-section:newForm-String_JSForm_des|text=|trigger=button}{sub-section}{sub-section:newForm-String_JSForm_des|trigger=none|class=sIndent}Creates a new form with the given JSForm as its super form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newForm-String_JSForm_snc|text=|trigger=button}{sub-section}{sub-section:newForm-String_JSForm_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newForm-String_JSForm_prs|text=|trigger=button}{sub-section}{sub-section:newForm-String_JSForm_prs|trigger=none|class=sIndent}\{[String]} name -- The name of the new form
\{[JSForm]} superForm -- the super form that will extended from, see JSform.setExtendsForm();
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newForm-String_JSForm_ret|text=|trigger=button}{sub-section}{sub-section:newForm-String_JSForm_ret|trigger=none|class=sIndent}[JSForm] -- a new JSForm object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newForm-String_JSForm_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newForm-String_JSForm_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newForm-String_JSForm_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newForm-String_JSForm_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newForm-String_JSForm_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newForm-String_JSForm_sam|trigger=none}{code:language=javascript}
//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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newForm-String_String_String_Boolean_Number_Number|class=node}{tr:id=name}{td}h6.newForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSForm]{span}{span:id=iets|style=float: left; font-weight: bold;}newForm{span}{span:id=iets|style=float: left;}\(name, dataSource, styleName, show_in_menu, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newForm-String_String_String_Boolean_Number_Number_des|text=|trigger=button}{sub-section}{sub-section:newForm-String_String_String_Boolean_Number_Number_des|trigger=none|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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_snc|text=|trigger=button}{sub-section}{sub-section:newForm-String_String_String_Boolean_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_prs|text=|trigger=button}{sub-section}{sub-section:newForm-String_String_String_Boolean_Number_Number_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_ret|text=|trigger=button}{sub-section}{sub-section:newForm-String_String_String_Boolean_Number_Number_ret|trigger=none|class=sIndent}[JSForm] -- a new JSForm object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_Boolean_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_Boolean_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_Boolean_Number_Number_sam|trigger=none}{code:language=javascript}
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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newForm-String_String_String_String_Boolean_Number_Number|class=node}{tr:id=name}{td}h6.newForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSForm]{span}{span:id=iets|style=float: left; font-weight: bold;}newForm{span}{span:id=iets|style=float: left;}\(name, serverName, tableName, styleName, show_in_menu, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_des|text=|trigger=button}{sub-section}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_des|trigger=none|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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newForm-String_String_String_String_Boolean_Number_Number_snc|text=|trigger=button}{sub-section}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newForm-String_String_String_String_Boolean_Number_Number_prs|text=|trigger=button}{sub-section}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_prs|trigger=none|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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newForm-String_String_String_String_Boolean_Number_Number_ret|text=|trigger=button}{sub-section}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_ret|trigger=none|class=sIndent}[JSForm] -- a new JSForm object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newForm-String_String_String_String_Boolean_Number_Number_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newForm-String_String_String_String_Boolean_Number_Number_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newForm-String_String_String_String_Boolean_Number_Number_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_sam|trigger=none}{code:language=javascript}
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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newGlobalMethod-String_String|class=node}{tr:id=name}{td}h6.newGlobalMethod{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMethod]{span}{span:id=iets|style=float: left; font-weight: bold;}newGlobalMethod{span}{span:id=iets|style=float: left;}\(scopeName, code){span}{td}{tr}{tr:id=des}{td}{sub-section:newGlobalMethod-String_String_des|text=|trigger=button}{sub-section}{sub-section:newGlobalMethod-String_String_des|trigger=none|class=sIndent}Creates a new global method with the specified code in a scope.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newGlobalMethod-String_String_snc|text=|trigger=button}{sub-section}{sub-section:newGlobalMethod-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newGlobalMethod-String_String_prs|text=|trigger=button}{sub-section}{sub-section:newGlobalMethod-String_String_prs|trigger=none|class=sIndent}\{[String]} scopeName -- the scope in which the method is created
\{[String]} code -- the specified code for the global method
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newGlobalMethod-String_String_ret|text=|trigger=button}{sub-section}{sub-section:newGlobalMethod-String_String_ret|trigger=none|class=sIndent}[JSMethod] -- a JSMethod object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newGlobalMethod-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newGlobalMethod-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newGlobalMethod-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newGlobalMethod-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newGlobalMethod-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newGlobalMethod-String_String_sam|trigger=none}{code:language=javascript}
var method = solutionModel.newGlobalMethod('globals', 'function myglobalmethod(){currentcontroller.newRecord()}')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newGlobalVariable-String_String_Number|class=node}{tr:id=name}{td}h6.newGlobalVariable{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSVariable]{span}{span:id=iets|style=float: left; font-weight: bold;}newGlobalVariable{span}{span:id=iets|style=float: left;}\(scopeName, name, type){span}{td}{tr}{tr:id=des}{td}{sub-section:newGlobalVariable-String_String_Number_des|text=|trigger=button}{sub-section}{sub-section:newGlobalVariable-String_String_Number_des|trigger=none|class=sIndent}Creates a new global variable with the specified name and number type.

NOTE: The global variable number type is based on the value assigned from the SolutionModel\-JSVariable node; for example: JSVariable.INTEGER.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newGlobalVariable-String_String_Number_snc|text=|trigger=button}{sub-section}{sub-section:newGlobalVariable-String_String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newGlobalVariable-String_String_Number_prs|text=|trigger=button}{sub-section}{sub-section:newGlobalVariable-String_String_Number_prs|trigger=none|class=sIndent}\{[String]} scopeName -- the scope in which the variable is created
\{[String]} name -- the specified name for the global variable
\{[Number]} type -- the specified number type for the global variable
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newGlobalVariable-String_String_Number_ret|text=|trigger=button}{sub-section}{sub-section:newGlobalVariable-String_String_Number_ret|trigger=none|class=sIndent}[JSVariable] -- a JSVariable object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newGlobalVariable-String_String_Number_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newGlobalVariable-String_String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newGlobalVariable-String_String_Number_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newGlobalVariable-String_String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newGlobalVariable-String_String_Number_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newGlobalVariable-String_String_Number_sam|trigger=none}{code:language=javascript}
var myGlobalVariable = solutionModel.newGlobalVariable('globals', 'newGlobalVariable', JSVariable.INTEGER); 
myGlobalVariable.defaultValue = 12;
	//myGlobalVariable.defaultValue = "{a:'First letter',b:'Second letter'}"
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newMedia|class=node}{tr:id=name}{td}h6.newMedia{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMedia]{span}{span:id=iets|style=float: left; font-weight: bold;}newMedia{span}{span:id=iets|style=float: left;}\(name, bytes){span}{td}{tr}{tr:id=des}{td}{sub-section:newMedia_des|text=|trigger=button}{sub-section}{sub-section:newMedia_des|trigger=none|class=sIndent}Creates a new media object that can be assigned to a label or a button.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newMedia_snc|text=|trigger=button}{sub-section}{sub-section:newMedia_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newMedia_prs|text=|trigger=button}{sub-section}{sub-section:newMedia_prs|trigger=none|class=sIndent}\{[String]} name -- The name of the new media
\{byte[]} bytes -- The content
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newMedia_ret|text=|trigger=button}{sub-section}{sub-section:newMedia_ret|trigger=none|class=sIndent}[JSMedia] -- a JSMedia object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newMedia_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newMedia_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newMedia_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newMedia_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newMedia_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newMedia_sam|trigger=none}{code:language=javascript}
var myMedia = solutionModel.newMedia('button01.gif',bytes)
//now set the imageMedia property of your label or button
//myButton.imageMedia = myMedia
// OR
//myLabel.imageMedia = myMedia
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newRelation-String_String_String_Number|class=node}{tr:id=name}{td}h6.newRelation{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSRelation]{span}{span:id=iets|style=float: left; font-weight: bold;}newRelation{span}{span:id=iets|style=float: left;}\(name, primaryDataSource, foreignDataSource, joinType){span}{td}{tr}{tr:id=des}{td}{sub-section:newRelation-String_String_String_Number_des|text=|trigger=button}{sub-section}{sub-section:newRelation-String_String_String_Number_des|trigger=none|class=sIndent}Creates a new JSRelation Object with a specified name; includes the primary datasource, foreign datasource and the type of join for the new relation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newRelation-String_String_String_Number_snc|text=|trigger=button}{sub-section}{sub-section:newRelation-String_String_String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newRelation-String_String_String_Number_prs|text=|trigger=button}{sub-section}{sub-section:newRelation-String_String_String_Number_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the new relation
\{[String]} primaryDataSource -- the specified name of the primary datasource
\{[String]} foreignDataSource -- the specified name of the foreign datasource
\{[Number]} joinType -- the type of join for the new relation; JSRelation.INNER\_JOIN, JSRelation.LEFT\_OUTER\_JOIN
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newRelation-String_String_String_Number_ret|text=|trigger=button}{sub-section}{sub-section:newRelation-String_String_String_Number_ret|trigger=none|class=sIndent}[JSRelation] -- a JSRelation object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newRelation-String_String_String_Number_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newRelation-String_String_String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newRelation-String_String_String_Number_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newRelation-String_String_String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newRelation-String_String_String_Number_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newRelation-String_String_String_Number_sam|trigger=none}{code:language=javascript}
var rel = solutionModel.newRelation('myRelation', myPrimaryDataSource, myForeignDataSource, JSRelation.INNER_JOIN);
application.output(rel.getRelationItems());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newStyle|class=node}{tr:id=name}{td}h6.newStyle{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSStyle]{span}{span:id=iets|style=float: left; font-weight: bold;}newStyle{span}{span:id=iets|style=float: left;}\(name, content){span}{td}{tr}{tr:id=des}{td}{sub-section:newStyle_des|text=|trigger=button}{sub-section}{sub-section:newStyle_des|trigger=none|class=sIndent}Creates a new style with the given css content string under the given name.

NOTE: Will throw an exception if a style with that name already exists.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newStyle_snc|text=|trigger=button}{sub-section}{sub-section:newStyle_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newStyle_prs|text=|trigger=button}{sub-section}{sub-section:newStyle_prs|trigger=none|class=sIndent}\{[String]} name -- the name of the new style
\{[String]} content -- the css content of the new style
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newStyle_ret|text=|trigger=button}{sub-section}{sub-section:newStyle_ret|trigger=none|class=sIndent}[JSStyle] -- a JSStyle object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newStyle_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newStyle_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newStyle_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newStyle_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newStyle_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newStyle_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('myForm','db:/my_server/my_table',null,true,1000,800);
if (form.transparent == false)
{
	var style = solutionModel.newStyle('myStyle','form { background-color: yellow; }');
	style.text = style.text + 'field { background-color: blue; }';
	form.styleName = 'myStyle';
}
var field = form.newField('columnTextDataProvider',JSField.TEXT_FIELD,100,100,100,50);
forms['myForm'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newValueList|class=node}{tr:id=name}{td}h6.newValueList{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSValueList]{span}{span:id=iets|style=float: left; font-weight: bold;}newValueList{span}{span:id=iets|style=float: left;}\(name, type){span}{td}{tr}{tr:id=des}{td}{sub-section:newValueList_des|text=|trigger=button}{sub-section}{sub-section:newValueList_des|trigger=none|class=sIndent}Creates a new valuelist with the specified name and number type.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newValueList_snc|text=|trigger=button}{sub-section}{sub-section:newValueList_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newValueList_prs|text=|trigger=button}{sub-section}{sub-section:newValueList_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name for the valuelist
\{[Number]} type -- the specified number type for the valuelist; may be JSValueList.CUSTOM\_VALUES, JSValueList.DATABASE\_VALUES, JSValueList.EMPTY\_VALUE\_ALWAYS, JSValueList.EMPTY\_VALUE\_NEVER
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newValueList_ret|text=|trigger=button}{sub-section}{sub-section:newValueList_ret|trigger=none|class=sIndent}[JSValueList] -- a JSValueList object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newValueList_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newValueList_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newValueList_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newValueList_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newValueList_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newValueList_sam|trigger=none}{code:language=javascript}
var vl1 = solutionModel.newValueList("customText",JSValueList.CUSTOM_VALUES);
vl1.customValues = "customvalue1\ncustomvalue2";
var vl2 = solutionModel.newValueList("customid",JSValueList.CUSTOM_VALUES);
vl2.customValues = "customvalue1|1\ncustomvalue2|2";
var form = solutionModel.newForm("customValueListForm",controller.getDataSource(),null,true,300,300);
var combo1 = form.newComboBox("scopes.globals.text",10,10,120,20);
combo1.valuelist = vl1;
var combo2 = form.newComboBox("scopes.globals.id",10,60,120,20);
combo2.valuelist = vl2;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeForm|class=node}{tr:id=name}{td}h6.removeForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeForm{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeForm_des|text=|trigger=button}{sub-section}{sub-section:removeForm_des|trigger=none|class=sIndent}Removes the specified form during the persistent connected client session.

NOTE: Make sure you call history.remove first in your Servoy method (script).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeForm_snc|text=|trigger=button}{sub-section}{sub-section:removeForm_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeForm_prs|text=|trigger=button}{sub-section}{sub-section:removeForm_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the form to remove
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeForm_ret|text=|trigger=button}{sub-section}{sub-section:removeForm_ret|trigger=none|class=sIndent}[Boolean] -- true is form has been removed, false if form could not be removed{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeForm_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeForm_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeForm_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeForm_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeForm_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeForm_sam|trigger=none}{code:language=javascript}
//first remove it from the current history, to destroy any active form instance
var success = history.removeForm('myForm')
//removes the named form from this session, please make sure you called history.remove() first
if(success)
{
	solutionModel.removeForm('myForm')
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeGlobalMethod-String_String|class=node}{tr:id=name}{td}h6.removeGlobalMethod{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeGlobalMethod{span}{span:id=iets|style=float: left;}\(scopeName, name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeGlobalMethod-String_String_des|text=|trigger=button}{sub-section}{sub-section:removeGlobalMethod-String_String_des|trigger=none|class=sIndent}Removes the specified global method.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeGlobalMethod-String_String_snc|text=|trigger=button}{sub-section}{sub-section:removeGlobalMethod-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeGlobalMethod-String_String_prs|text=|trigger=button}{sub-section}{sub-section:removeGlobalMethod-String_String_prs|trigger=none|class=sIndent}\{[String]} scopeName -- the scope in which the method is declared
\{[String]} name -- the name of the global method to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeGlobalMethod-String_String_ret|text=|trigger=button}{sub-section}{sub-section:removeGlobalMethod-String_String_ret|trigger=none|class=sIndent}[Boolean] -- true if the removal was successful, false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeGlobalMethod-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeGlobalMethod-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeGlobalMethod-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeGlobalMethod-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeGlobalMethod-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeGlobalMethod-String_String_sam|trigger=none}{code:language=javascript}
var m1 = solutionModel.newGlobalMethod('globals', 'function myglobalmethod1(){application.output("Global Method 1");}');
var m2 = solutionModel.newGlobalMethod('globals', 'function myglobalmethod2(){application.output("Global Method 2");}');

var success = solutionModel.removeGlobalMethod('globals', 'myglobalmethod1');
if (success == false) application.output('!!! myglobalmethod1 could not be removed !!!');

var list = solutionModel.getGlobalMethods('globals');
for (var i = 0; i < list.length; i++) { 
	application.output(list[i].code);
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeGlobalVariable-String_String|class=node}{tr:id=name}{td}h6.removeGlobalVariable{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeGlobalVariable{span}{span:id=iets|style=float: left;}\(scopeName, name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeGlobalVariable-String_String_des|text=|trigger=button}{sub-section}{sub-section:removeGlobalVariable-String_String_des|trigger=none|class=sIndent}Removes the specified global variable.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeGlobalVariable-String_String_snc|text=|trigger=button}{sub-section}{sub-section:removeGlobalVariable-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeGlobalVariable-String_String_prs|text=|trigger=button}{sub-section}{sub-section:removeGlobalVariable-String_String_prs|trigger=none|class=sIndent}\{[String]} scopeName -- the scope in which the variable is declared
\{[String]} name -- the name of the global variable to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeGlobalVariable-String_String_ret|text=|trigger=button}{sub-section}{sub-section:removeGlobalVariable-String_String_ret|trigger=none|class=sIndent}[Boolean] -- true if the removal was successful, false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeGlobalVariable-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeGlobalVariable-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeGlobalVariable-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeGlobalVariable-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeGlobalVariable-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeGlobalVariable-String_String_sam|trigger=none}{code:language=javascript}
var v1 = solutionModel.newGlobalVariable('globals', 'globalVar1', JSVariable.INTEGER);
var v2 = solutionModel.newGlobalVariable('globals', 'globalVar2', JSVariable.TEXT);

var success = solutionModel.removeGlobalVariable('globals', 'globalVar1');
if (success == false) application.output('!!! globalVar1 could not be removed !!!');

var list = solutionModel.getGlobalVariables('globals');
for (var i = 0; i < list.length; i++) {
	application.output(list[i].name + '[ ' + list[i].variableType + ']: ' + list[i].variableType);
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeMedia|class=node}{tr:id=name}{td}h6.removeMedia{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeMedia{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeMedia_des|text=|trigger=button}{sub-section}{sub-section:removeMedia_des|trigger=none|class=sIndent}Removes the media item specified by name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeMedia_snc|text=|trigger=button}{sub-section}{sub-section:removeMedia_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeMedia_prs|text=|trigger=button}{sub-section}{sub-section:removeMedia_prs|trigger=none|class=sIndent}\{[String]} name -- the name of the media item to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeMedia_ret|text=|trigger=button}{sub-section}{sub-section:removeMedia_ret|trigger=none|class=sIndent}[Boolean] -- true if the removal was successful, false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeMedia_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeMedia_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeMedia_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeMedia_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeMedia_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeMedia_sam|trigger=none}{code:language=javascript}
var bytes1 = plugins.file.readFile('D:/Imgs/image1.png');
var image1 = solutionModel.newMedia('image1.png', bytes1);
var bytes2 = plugins.file.readFile('D:/Imgs/image2.jpg');
var image2 = solutionModel.newMedia('image2.jpg',bytes2);
var bytes3 = plugins.file.readFile('D:/Imgs/image3.jpg');
var image3 = solutionModel.newMedia('image3.jpg',bytes3);

var f = solutionModel.newForm("newForm",currentcontroller.getDataSource(),null,false,500,350);
var l = f.newLabel('', 20, 70, 300, 200);
l.imageMedia = image1;
l.borderType =  solutionModel.createLineBorder(4,'#ff0000');
forms["newForm"].controller.show();

var status = solutionModel.removeMedia('image1.jpg');
if (status) application.output("image1.png has been removed");
else application.output("image1.png has not been removed");

var mediaList = solutionModel.getMediaList();
for (var i = 0; i < mediaList.length; i++) {
	application.output(mediaList[i].getName() + ":" + mediaList[i].mimeType);
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeRelation|class=node}{tr:id=name}{td}h6.removeRelation{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeRelation{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeRelation_des|text=|trigger=button}{sub-section}{sub-section:removeRelation_des|trigger=none|class=sIndent}Removes the relation specified by name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeRelation_snc|text=|trigger=button}{sub-section}{sub-section:removeRelation_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeRelation_prs|text=|trigger=button}{sub-section}{sub-section:removeRelation_prs|trigger=none|class=sIndent}\{[String]} name -- the name of the relation to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeRelation_ret|text=|trigger=button}{sub-section}{sub-section:removeRelation_ret|trigger=none|class=sIndent}[Boolean] -- true if the removal was successful, false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeRelation_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeRelation_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeRelation_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeRelation_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeRelation_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeRelation_sam|trigger=none}{code:language=javascript}
var success = solutionModel.removeRelation('myRelation');
if (success) { application.output("Relation has been removed");}
else {application.output("Relation could not be removed");}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeStyle|class=node}{tr:id=name}{td}h6.removeStyle{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeStyle{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeStyle_des|text=|trigger=button}{sub-section}{sub-section:removeStyle_des|trigger=none|class=sIndent}Removes the specified style.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeStyle_snc|text=|trigger=button}{sub-section}{sub-section:removeStyle_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeStyle_prs|text=|trigger=button}{sub-section}{sub-section:removeStyle_prs|trigger=none|class=sIndent}\{[String]} name -- the name of the style to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeStyle_ret|text=|trigger=button}{sub-section}{sub-section:removeStyle_ret|trigger=none|class=sIndent}[Boolean] -- true if the removal was successful, false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeStyle_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeStyle_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeStyle_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeStyle_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeStyle_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeStyle_sam|trigger=none}{code:language=javascript}
var s = solutionModel.newStyle("smStyle1",'form { background-color: yellow; }');
var status = solutionModel.removeStyle("smStyle1");
if (status == false) application.output("Could not remove style.");
else application.output("Style removed.");
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeValueList|class=node}{tr:id=name}{td}h6.removeValueList{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeValueList{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeValueList_des|text=|trigger=button}{sub-section}{sub-section:removeValueList_des|trigger=none|class=sIndent}Removes the specified valuelist.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeValueList_snc|text=|trigger=button}{sub-section}{sub-section:removeValueList_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeValueList_prs|text=|trigger=button}{sub-section}{sub-section:removeValueList_prs|trigger=none|class=sIndent}\{[String]} name -- name of the valuelist to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeValueList_ret|text=|trigger=button}{sub-section}{sub-section:removeValueList_ret|trigger=none|class=sIndent}[Boolean] -- true if the removal was successful, false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeValueList_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeValueList_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeValueList_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeValueList_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeValueList_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeValueList_sam|trigger=none}{code:language=javascript}
var vlName = "customValueList";
var vl = solutionModel.newValueList(vlName,JSValueList.CUSTOM_VALUES);
vl.customValues = "customvalue1\ncustomvalue2";

var status = solutionModel.removeValueList(vlName);
if (status) application.output("Removal has been done.");
else application.output("ValueList not removed.");

var vls = solutionModel.getValueLists();
if (vls != null) {
	for (var i = 0; i < vls.length; i++) {
		application.output(vls[i]);
	}
	application.output("");
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=revertForm|class=node}{tr:id=name}{td}h6.revertForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSForm]{span}{span:id=iets|style=float: left; font-weight: bold;}revertForm{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:revertForm_des|text=|trigger=button}{sub-section}{sub-section:revertForm_des|trigger=none|class=sIndent}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.

NOTE: Make sure you call history.remove first in your Servoy method (script) or call form.controller.recreateUI() before the script ends.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:revertForm_snc|text=|trigger=button}{sub-section}{sub-section:revertForm_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:revertForm_prs|text=|trigger=button}{sub-section}{sub-section:revertForm_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the form to revert
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:revertForm_ret|text=|trigger=button}{sub-section}{sub-section:revertForm_ret|trigger=none|class=sIndent}[JSForm] -- a JSForm object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:revertForm_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:revertForm_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:revertForm_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:revertForm_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:revertForm_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:revertForm_sam|trigger=none}{code:language=javascript}
// revert the form to the original solution form, removing any changes done to it through the solution model.
var revertedForm = solutionModel.revertForm('myForm')
// add a label on a random place.
revertedForm.newLabel("MyLabel",Math.random()*100,Math.random()*100,80,20);
// make sure that the ui is up to date.
forms.myForm.controller.recreateUI();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=wrapMethodWithArguments|class=node}{tr:id=name}{td}h6.wrapMethodWithArguments{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMethod]{span}{span:id=iets|style=float: left; font-weight: bold;}wrapMethodWithArguments{span}{span:id=iets|style=float: left;}\(method, args){span}{td}{tr}{tr:id=des}{td}{sub-section:wrapMethodWithArguments_des|text=|trigger=button}{sub-section}{sub-section:wrapMethodWithArguments_des|trigger=none|class=sIndent}Get a JSMethod instance with arguments to be assigned to an event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:wrapMethodWithArguments_snc|text=|trigger=button}{sub-section}{sub-section:wrapMethodWithArguments_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:wrapMethodWithArguments_prs|text=|trigger=button}{sub-section}{sub-section:wrapMethodWithArguments_prs|trigger=none|class=sIndent}\{[JSMethod]} method -- JSMethod to be assigned to an event
\{[Object]...} args -- positional arguments
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:wrapMethodWithArguments_ret|text=|trigger=button}{sub-section}{sub-section:wrapMethodWithArguments_ret|trigger=none|class=sIndent}[JSMethod] -- a JSMethod{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:wrapMethodWithArguments_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:wrapMethodWithArguments_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:wrapMethodWithArguments_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:wrapMethodWithArguments_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:wrapMethodWithArguments_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:wrapMethodWithArguments_sam|trigger=none}{code:language=javascript}
var str = "John's Bookstore"
var form = solutionModel.getForm('orders')
var button = form.getButton('abutton')
var method = form.getFormMethod('doit') // has 4 arguments: event (fixed), boolean, number and string
// string arguments have to be quoted, they are interpreted before the method is called
var quotedString = "'"+utils.stringReplace(str, "'", "\\'")+"'"
// list all arguments the method has, use nulls for fixed arguments (like event)
button.onAction = solutionModel.wrapMethodWithArguments(method, [null, true, 42, quotedString])
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}