{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: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}[CURSOR]{span}{span:class=sWordList}[DEFAULTS]{span}{span:class=sWordList}[DISPLAYTYPE]{span}{span:class=sWordList}[JOINTYPE]{span}{span:class=sWordList}[JSButton]{span}{span:class=sWordList}[JSComponent]{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}[PARTS]{span}{span:class=sWordList}[PRINTSLIDING]{span}{span:class=sWordList}[SCROLLBAR]{span}{span:class=sWordList}[VALUELIST]{span}{span:class=sWordList}[VARIABLETYPE]{span}{span:class=sWordList}[VIEW]{span}{td}{tr}{table}\\{table:class=servoy sSummery}{colgroup}{column: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, newParentForm)
Makes an exact copy of the given component (JSComponent/JSField/JSLabel), gives it a new name and optionally moves it to a new parent form.{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}[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]\(server, tablename)
Get an array of forms, that are all based on datasource/servername or tablename.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#getGlobalMethod]\(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}[JSVariable]{td}{td}[#getGlobalVariable]\(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}[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]\(primary_server_name/primary_data_source, primary_table_name)
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}[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, server_name|data_source, table_name, style, show_in_menu, width, height)
Creates a new JSForm Object.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#newGlobalMethod]\(code)
Creates a new global method with the specified code.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariable]{td}{td}[#newGlobalVariable]\(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, primary_server_name|primary_data_source, primary_table_name, foreign_server_name|foreign_data_source, foreign_table_name, join_type)
Creates a new JSRelation Object with a specified name; includes the primary datasource, optional table name, foreign datasource, optional foreign table name, 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}[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}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=DF159317-FAE9-44B4-8E3B-301897B787D4}{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:DF159317-FAE9-44B4-8E3B-301897B787D4_des|text=|trigger=button}{sub-section}{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_des|trigger=none|class=sIndent}Makes an exact copy of the given component (JSComponent/JSField/JSLabel), gives it a new name and optionally moves it to a new parent form.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_prs|trigger=none}newName -- the new name of the cloned component
component -- the component to clone
\[newParentForm\] -- the new parent form
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_ret|text=|trigger=button}{sub-section}{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_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:DF159317-FAE9-44B4-8E3B-301897B787D4_see|text=|trigger=button}{sub-section}{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_see|text=|trigger=button}{sub-section}{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_sam|text=|trigger=button}{sub-section}{sub-section:DF159317-FAE9-44B4-8E3B-301897B787D4_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=71E7E4ED-C1E5-4C07-84EB-0967B6CB405B}{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:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_des|text=|trigger=button}{sub-section}{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_des|trigger=none|class=sIndent}Makes an exact copy of the given form and gives it the new name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_prs|trigger=none}newName -- the new name for the form clone
jsForm -- the form to be cloned
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_ret|text=|trigger=button}{sub-section}{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_ret|trigger=none|class=sIndent}[JSForm] -- a JSForm{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_see|text=|trigger=button}{sub-section}{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_see|text=|trigger=button}{sub-section}{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_sam|text=|trigger=button}{sub-section}{sub-section:71E7E4ED-C1E5-4C07-84EB-0967B6CB405B_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=759AB0AD-E675-469C-A362-029CBC13223F}{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:759AB0AD-E675-469C-A362-029CBC13223F_des|text=|trigger=button}{sub-section}{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_des|trigger=none|class=sIndent}Gets the specified form object and returns information about the form (see JSForm node).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_prs|trigger=none}name -- the specified name of the form
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_ret|text=|trigger=button}{sub-section}{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_ret|trigger=none|class=sIndent}[JSForm] -- a JSForm{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_see|text=|trigger=button}{sub-section}{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_see|text=|trigger=button}{sub-section}{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_sam|text=|trigger=button}{sub-section}{sub-section:759AB0AD-E675-469C-A362-029CBC13223F_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FBAA5790-F0C8-408C-949D-DAAC42162B6C}{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:FBAA5790-F0C8-408C-949D-DAAC42162B6C_des|text=|trigger=button}{sub-section}{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_des|trigger=none|class=sIndent}Get an array of forms, that are all based on datasource/servername or tablename.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_prs|trigger=none}\[server\] -- the datasource or servername
\[tablename\] -- the tablename
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_ret|text=|trigger=button}{sub-section}{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_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:FBAA5790-F0C8-408C-949D-DAAC42162B6C_see|text=|trigger=button}{sub-section}{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_see|text=|trigger=button}{sub-section}{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_sam|text=|trigger=button}{sub-section}{sub-section:FBAA5790-F0C8-408C-949D-DAAC42162B6C_sam|class=sIndent|trigger=none}{code:language=javascript}
var forms = solutionModel.getForms(datasource)
for (var i in forms)
		application.output(forms[i].name)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1BCF0E8D-BC84-40E2-A804-F019513BAC11}{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;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_des|text=|trigger=button}{sub-section}{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_des|trigger=none|class=sIndent}Gets an existing global method by the specified name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_prs|trigger=none}name -- the name of the specified global method
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_ret|text=|trigger=button}{sub-section}{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_ret|trigger=none|class=sIndent}[JSMethod] -- a JSMethod{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_see|text=|trigger=button}{sub-section}{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_see|text=|trigger=button}{sub-section}{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_sam|text=|trigger=button}{sub-section}{sub-section:1BCF0E8D-BC84-40E2-A804-F019513BAC11_sam|class=sIndent|trigger=none}{code:language=javascript}
var method = solutionModel.getGlobalMethod("nameOfGlobalMethod"); 
	if (method != null) application.output(method.code);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0F2AAE38-3F16-48D4-815F-F1F13C08E790}{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:0F2AAE38-3F16-48D4-815F-F1F13C08E790_des|text=|trigger=button}{sub-section}{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_des|trigger=none|class=sIndent}The list of all global methods.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_ret|text=|trigger=button}{sub-section}{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_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:0F2AAE38-3F16-48D4-815F-F1F13C08E790_see|text=|trigger=button}{sub-section}{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_see|text=|trigger=button}{sub-section}{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_sam|text=|trigger=button}{sub-section}{sub-section:0F2AAE38-3F16-48D4-815F-F1F13C08E790_sam|class=sIndent|trigger=none}{code:language=javascript}
var methods = solutionModel.getGlobalMethods(); 
	if (methods != null)
		for (var x in methods) 
			application.output(methods[x].getName());
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CDD14F1C-9332-4F55-A8BD-D8D5F828FF04}{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;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_des|text=|trigger=button}{sub-section}{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_des|trigger=none|class=sIndent}Gets an existing global variable by the specified name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_prs|trigger=none}name -- the specified name of the global variable
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_ret|text=|trigger=button}{sub-section}{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_ret|trigger=none|class=sIndent}[JSVariable] -- a JSVariable{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_see|text=|trigger=button}{sub-section}{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_see|text=|trigger=button}{sub-section}{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_sam|text=|trigger=button}{sub-section}{sub-section:CDD14F1C-9332-4F55-A8BD-D8D5F828FF04_sam|class=sIndent|trigger=none}{code:language=javascript}
var globalVariable = solutionModel.getGlobalVariable('globalVariableName');
	application.output(globalVariable.name + " has the default value of " + globalVariable.defaultValue);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8FCBBA03-DFF9-419D-B482-8DC832BDF592}{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:8FCBBA03-DFF9-419D-B482-8DC832BDF592_des|text=|trigger=button}{sub-section}{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_des|trigger=none|class=sIndent}Gets an array of all global variables.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_ret|text=|trigger=button}{sub-section}{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_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:8FCBBA03-DFF9-419D-B482-8DC832BDF592_see|text=|trigger=button}{sub-section}{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_see|text=|trigger=button}{sub-section}{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_sam|text=|trigger=button}{sub-section}{sub-section:8FCBBA03-DFF9-419D-B482-8DC832BDF592_sam|class=sIndent|trigger=none}{code:language=javascript}
var globalVariables = solutionModel.getGlobalVariables();
	for (var i in globalVariables)
		application.output(globalVariables[i].name + " has the default value of " + globalVariables[i].defaultValue);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2842A0C7-288C-4E9B-B38B-5F3D713E5EF3}{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:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_des|text=|trigger=button}{sub-section}{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_des|trigger=none|class=sIndent}Gets the specified media object; can be assigned to a button/label.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_prs|trigger=none}name -- the specified name of the media object
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_ret|text=|trigger=button}{sub-section}{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_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:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_see|text=|trigger=button}{sub-section}{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_see|text=|trigger=button}{sub-section}{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_sam|text=|trigger=button}{sub-section}{sub-section:2842A0C7-288C-4E9B-B38B-5F3D713E5EF3_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=30F4D589-645F-417E-8B33-B53AEA777627}{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:30F4D589-645F-417E-8B33-B53AEA777627_des|text=|trigger=button}{sub-section}{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_des|trigger=none|class=sIndent}Gets the list of all media objects.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_ret|text=|trigger=button}{sub-section}{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_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:30F4D589-645F-417E-8B33-B53AEA777627_see|text=|trigger=button}{sub-section}{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_see|text=|trigger=button}{sub-section}{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_sam|text=|trigger=button}{sub-section}{sub-section:30F4D589-645F-417E-8B33-B53AEA777627_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF}{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:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_des|text=|trigger=button}{sub-section}{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_des|trigger=none|class=sIndent}Gets an existing relation by the specified name and returns a JSRelation Object.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_prs|trigger=none}name -- the specified name of the relation
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_ret|text=|trigger=button}{sub-section}{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_ret|trigger=none|class=sIndent}[JSRelation] -- a JSRelation{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_see|text=|trigger=button}{sub-section}{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_see|text=|trigger=button}{sub-section}{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_sam|text=|trigger=button}{sub-section}{sub-section:EE8FD4FC-0CAD-4DFF-BD62-F43A86DB7EFF_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C3A8D71B-D5E6-4727-81AD-987A06529385}{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;}\(primary_server_name/primary_data_source, primary_table_name){span}{td}{tr}{tr:id=des}{td}{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_des|text=|trigger=button}{sub-section}{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_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}{tr:id=prs}{td}*Parameters*\\{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_prs|trigger=none}\[primary_server_name/primary_data_source\] -- the specified name of the server or datasource for the specified table
\[primary_table_name\] -- the specified name of the table
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_ret|text=|trigger=button}{sub-section}{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_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:C3A8D71B-D5E6-4727-81AD-987A06529385_see|text=|trigger=button}{sub-section}{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_see|text=|trigger=button}{sub-section}{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_sam|text=|trigger=button}{sub-section}{sub-section:C3A8D71B-D5E6-4727-81AD-987A06529385_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=15277444-2A43-480E-85F2-89092AAA48F3}{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:15277444-2A43-480E-85F2-89092AAA48F3_des|text=|trigger=button}{sub-section}{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_des|trigger=none|class=sIndent}Gets the style specified by the given name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_prs|trigger=none}name -- the specified name of the style
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_ret|text=|trigger=button}{sub-section}{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_ret|trigger=none|class=sIndent}[JSStyle] -- a JSStyle{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_see|text=|trigger=button}{sub-section}{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_see|text=|trigger=button}{sub-section}{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_sam|text=|trigger=button}{sub-section}{sub-section:15277444-2A43-480E-85F2-89092AAA48F3_sam|class=sIndent|trigger=none}{code:language=javascript}
var style = solutionModel.getStyle('my_existing_style')
	style.content = 'combobox { color: #0000ff;font: italic 10pt "Verdana";}'
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EE4B812E-48A9-45C8-AF94-858B4F2CA578}{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:EE4B812E-48A9-45C8-AF94-858B4F2CA578_des|text=|trigger=button}{sub-section}{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_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}{tr:id=prs}{td}*Parameters*\\{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_prs|trigger=none}name -- the specified name of the valuelist
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_ret|text=|trigger=button}{sub-section}{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_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:EE4B812E-48A9-45C8-AF94-858B4F2CA578_see|text=|trigger=button}{sub-section}{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_see|text=|trigger=button}{sub-section}{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_sam|text=|trigger=button}{sub-section}{sub-section:EE4B812E-48A9-45C8-AF94-858B4F2CA578_sam|class=sIndent|trigger=none}{code:language=javascript}
var myValueList = solutionModel.getValueList('myValueListHere')
//now set the valueList property of your field
//myField.valuelist = myValueList
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6F2F0CDF-662E-4138-AFB7-628C56303DDF}{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:6F2F0CDF-662E-4138-AFB7-628C56303DDF_des|text=|trigger=button}{sub-section}{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_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=prs}{td}*Parameters*\\{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_ret|text=|trigger=button}{sub-section}{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_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:6F2F0CDF-662E-4138-AFB7-628C56303DDF_see|text=|trigger=button}{sub-section}{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_see|text=|trigger=button}{sub-section}{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_sam|text=|trigger=button}{sub-section}{sub-section:6F2F0CDF-662E-4138-AFB7-628C56303DDF_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AAA2442F-5D56-43D5-BB8C-46254AECADAB}{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, server_name|data_source, table_name, style, show_in_menu, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_des|text=|trigger=button}{sub-section}{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_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}{tr:id=prs}{td}*Parameters*\\{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_prs|trigger=none}name -- the specified name of the form
server_name|data_source -- the specified name of the server or datasource for the specified table
\[table_name\] -- the specified name of the table
style -- the specified style
show_in_menu -- if true show the name of the new form in the menu; or false for not showing
width -- the width of the form in pixels
height -- the height of the form in pixels
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_ret|text=|trigger=button}{sub-section}{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_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:AAA2442F-5D56-43D5-BB8C-46254AECADAB_see|text=|trigger=button}{sub-section}{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_see|text=|trigger=button}{sub-section}{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_sam|text=|trigger=button}{sub-section}{sub-section:AAA2442F-5D56-43D5-BB8C-46254AECADAB_sam|class=sIndent|trigger=none}{code:language=javascript}
var myForm = solutionModel.newForm('newForm', 'myServer', 'myTable', '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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=58416CA0-1986-4ADD-B4DE-E048830108EB}{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;}\(code){span}{td}{tr}{tr:id=des}{td}{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_des|text=|trigger=button}{sub-section}{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_des|trigger=none|class=sIndent}Creates a new global method with the specified code.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_prs|trigger=none}code -- the specified code for the global method
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_ret|text=|trigger=button}{sub-section}{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_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:58416CA0-1986-4ADD-B4DE-E048830108EB_see|text=|trigger=button}{sub-section}{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_see|text=|trigger=button}{sub-section}{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_sam|text=|trigger=button}{sub-section}{sub-section:58416CA0-1986-4ADD-B4DE-E048830108EB_sam|class=sIndent|trigger=none}{code:language=javascript}
var method = solutionModel.newGlobalMethod('function myglobalmethod(){currentcontroller.newRecord()}')
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=BF6A478B-9636-4711-B0F8-EFDEB17A6D5A}{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;}\(name, type){span}{td}{tr}{tr:id=des}{td}{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_des|text=|trigger=button}{sub-section}{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_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}{tr:id=prs}{td}*Parameters*\\{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_prs|trigger=none}name -- the specified name for the global variable
type -- the specified number type for the global variable
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_ret|text=|trigger=button}{sub-section}{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_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:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_see|text=|trigger=button}{sub-section}{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_see|text=|trigger=button}{sub-section}{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_sam|text=|trigger=button}{sub-section}{sub-section:BF6A478B-9636-4711-B0F8-EFDEB17A6D5A_sam|class=sIndent|trigger=none}{code:language=javascript}
var myGlobalVariable = solutionModel.newGlobalVariable('newGlobalVariable',JSVariable.INTEGER); 
	myGlobalVariable.defaultValue = 12;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=87771BF9-C004-4885-873B-A0FDBF69AC0E}{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:87771BF9-C004-4885-873B-A0FDBF69AC0E_des|text=|trigger=button}{sub-section}{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_des|trigger=none|class=sIndent}Creates a new media object that can be assigned to a label or a button.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_prs|trigger=none}name -- The name of the new media
bytes -- The content
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_ret|text=|trigger=button}{sub-section}{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_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:87771BF9-C004-4885-873B-A0FDBF69AC0E_see|text=|trigger=button}{sub-section}{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_see|text=|trigger=button}{sub-section}{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_sam|text=|trigger=button}{sub-section}{sub-section:87771BF9-C004-4885-873B-A0FDBF69AC0E_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=75962E23-FAB6-4801-A0CD-558859A521F1}{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, primary_server_name|primary_data_source, primary_table_name, foreign_server_name|foreign_data_source, foreign_table_name, join_type){span}{td}{tr}{tr:id=des}{td}{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_des|text=|trigger=button}{sub-section}{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_des|trigger=none|class=sIndent}Creates a new JSRelation Object with a specified name; includes the primary datasource, optional table name, foreign datasource, optional foreign table name, and the type of join for the new relation.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_prs|trigger=none}name -- the specified name of the new relation
primary_server_name|primary_data_source -- the specified name of the primary server or datasource
\[primary_table_name\] -- the specified name of the primary table
foreign_server_name|foreign_data_source -- the specified name of the foreign server or datasource
\[foreign_table_name\] -- the specified name of the foreign table
join_type -- the type of join for the new relation; JSRelation.INNER_JOIN, JSRelation.LEFT_OUTER_JOIN
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_ret|text=|trigger=button}{sub-section}{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_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:75962E23-FAB6-4801-A0CD-558859A521F1_see|text=|trigger=button}{sub-section}{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_see|text=|trigger=button}{sub-section}{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_sam|text=|trigger=button}{sub-section}{sub-section:75962E23-FAB6-4801-A0CD-558859A521F1_sam|class=sIndent|trigger=none}{code:language=javascript}
var rel = solutionModel.newRelation('myRelation','myPrimaryServerName','myPrimaryTableName','myForeignServerName','myForeignTableName',JSRelation.INNER_JOIN);
application.output(rel.getRelationItems());
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FBF6CB82-B1AC-4121-9C2E-39683467285C}{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:FBF6CB82-B1AC-4121-9C2E-39683467285C_des|text=|trigger=button}{sub-section}{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_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}{tr:id=prs}{td}*Parameters*\\{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_prs|trigger=none}name -- the name of the new style
content -- the css content of the new style
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_ret|text=|trigger=button}{sub-section}{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_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:FBF6CB82-B1AC-4121-9C2E-39683467285C_see|text=|trigger=button}{sub-section}{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_see|text=|trigger=button}{sub-section}{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_sam|text=|trigger=button}{sub-section}{sub-section:FBF6CB82-B1AC-4121-9C2E-39683467285C_sam|class=sIndent|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('myForm','myServer','myTable',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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DC25A37A-0A67-4F73-86AD-EC1CBF549803}{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:DC25A37A-0A67-4F73-86AD-EC1CBF549803_des|text=|trigger=button}{sub-section}{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_des|trigger=none|class=sIndent}Creates a new valuelist with the specified name and number type.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_prs|trigger=none}name -- the specified name for the valuelist
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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_ret|text=|trigger=button}{sub-section}{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_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:DC25A37A-0A67-4F73-86AD-EC1CBF549803_see|text=|trigger=button}{sub-section}{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_see|text=|trigger=button}{sub-section}{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_sam|text=|trigger=button}{sub-section}{sub-section:DC25A37A-0A67-4F73-86AD-EC1CBF549803_sam|class=sIndent|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("globals.text",10,10,120,20);
combo1.valuelist = vl1;
var combo2 = form.newComboBox("globals.id",10,60,120,20);
combo2.valuelist = vl2;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8}{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:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_des|text=|trigger=button}{sub-section}{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_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}{tr:id=prs}{td}*Parameters*\\{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_prs|trigger=none}name -- the specified name of the form to remove
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_ret|text=|trigger=button}{sub-section}{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_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:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_see|text=|trigger=button}{sub-section}{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_see|text=|trigger=button}{sub-section}{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_sam|text=|trigger=button}{sub-section}{sub-section:22EF5895-F4EC-4E09-A04B-2CBCA0F2E8A8_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B5D51B79-BBA5-4F74-B8B6-B0079A76F24B}{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:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_des|text=|trigger=button}{sub-section}{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_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).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_prs|trigger=none}name -- the specified name of the form to revert
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_ret|text=|trigger=button}{sub-section}{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_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:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_see|text=|trigger=button}{sub-section}{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_see|text=|trigger=button}{sub-section}{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_sam|text=|trigger=button}{sub-section}{sub-section:B5D51B79-BBA5-4F74-B8B6-B0079A76F24B_sam|class=sIndent|trigger=none}{code:language=javascript}
//first remove it from the current history, to destroy any active form instance
var success = history.removeForm('myForm')
if(success)
{
 //reverts the named form to the original solution design form, will throw an exception if the form is not an original, please make sure you called history.remove() first
 var revertedForm = solutionModel.revertForm('myForm')
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}