Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{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}[JSButtonDEFAULTS]{span}{span:class=sWordList}[JSComponentJSBean]{span}{span:class=sWordList}[JSFieldJSButton]{span}{span:class=sWordList}[JSFormJSCalendar]{span}{span:class=sWordList}[JSLabelJSChecks]{span}{span:class=sWordList}[JSMethodJSCombobox]{span}{span:class=sWordList}[JSPartJSComponent]{span}{span:class=sWordList}[JSValueListJSField]{span}{span:class=sWordList}[JSVariableJSFooter]{span}{td}{tr}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[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}{tbodyspan:class=sWordList}[JSForm]{span}{span:class=sWordList}[JSHeader]{span}{span:class=sWordList}[JSInsetList]{span}{span:class=sWordList}[JSLabel]{span}{span:class=sWordList}[JSList]{span}{span:class=sWordList}[JSMethod]{span}{span:class=sWordList}[JSPassword]{span}{span:class=sWordList}[JSRadios]{span}{span:class=sWordList}[JSText]{span}{span:class=sWordList}[JSTextArea]{span}{span:class=sWordList}[JSTitle]{span}{span:class=sWordList}[JSValueList]{span}{span:class=sWordList}[JSVariable]{span}{td}{tr}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[JSForm]\[]{td}{td}[#getForms#getForm]\(server, tablename)
Get an array of forms, that are all based on datasource/servername and tablenamename)
Gets the specified form object and returns information about the form (see JSForm node).{td}{tr}{tbody}{tbody}{tr}{td}[JSMethodJSForm]\[]{td}{td}[#getGlobalMethod#getForms]\(scopeName, name)
GetsGet an existingarray globalof method by the specified nameall forms.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethodJSForm]\[]{td}{td}[#getGlobalMethods#getForms]\(datasource)
TheGet an listarray of forms, that are all global methodsbased on datasource/servername.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethodJSForm]\[]{td}{td}[#getGlobalMethods#getForms]\(scopeName)
The listserver, tablename)
Get an array of forms, that are all global methods based on datasource/servername and tablename.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariableJSMethod]{td}{td}[#getGlobalVariable#getGlobalMethod]\(scopeName, name)
Gets an existing global variablemethod by the specified name.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariableJSMethod]\[]{td}{td}[#getGlobalVariables#getGlobalMethods]\()
GetsThe an arraylist of all global variablesmethods.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariableJSMethod]\[]{td}{td}[#getGlobalVariables#getGlobalMethods]\(scopeName)
GetsThe an arraylist of all global variablesmethods.{td}{tr}{tbody}{tbody}{tr}{td}[StringJSVariable]\[]{td}{td}[#getScopeNames#getGlobalVariable]\(scopeName, name)
Gets an arrayexisting global ofvariable allby scopethe namesspecified usedname.{td}{tr}{tbody}{tbody}{tr}{td}[JSValueListJSVariable]\[]{td}{td}[#getValueList#getGlobalVariables]\(name)
Gets an existingarray valuelistof byall the specified name and returns a JSValueList Object that can be assigned to a fieldglobal variables.{td}{tr}{tbody}{tbody}{tr}{td}[JSValueListJSVariable]\[]{td}{td}[#getValueLists#getGlobalVariables]\(scopeName)
Gets an array of all valuelists for the currently active solutionglobal variables.{td}{tr}{tbody}{tbody}{tr}{td}[JSFormJSList]{td}{td}[#newForm#getListForm]\(name, dataSource, styleName, show_in_menu, width, heightformName)
CreatesReturns aan newexisting JSFormlist Objectform.{td}{tr}{tbody}{tbody}{tr}{td}[JSFormJSList]\[]{td}{td}[#newForm#getListForms]\(name,)
serverName,Get tableName,an styleName, show_in_menu, width, height)
Creates a new JSForm Objectarray of all list\-forms.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[JSMethod]{td}{td}[#newGlobalMethod#getScopeNames]\(scopeName, code)
CreatesGets aan newarray globalof methodall withscope the specified code in a scopenames used.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariableJSValueList]{td}{td}[#newGlobalVariable#getValueList]\(scopeName, name, type)
CreatesGets aan newexisting globalvaluelist variableby with the specified name and number type.{td}{ returns a JSValueList Object that can be assigned to a field.{td}{tr}{tbody}{tbody}{tr}{td}[BooleanJSValueList]\[]{td}{td}[#removeForm#getValueLists]\(name)
Gets an Removesarray theof specifiedall formvaluelists duringfor the persistentcurrently connectedactive client sessionsolution.{td}{tr}{tbody}{tbody}{tr}{td}[BooleanJSForm]{td}{td}[#removeGlobalMethod#newForm]\(scopeNamename, namedataSource)
RemovesCreates thea specifiednew globalJSForm methodObject.{td}{tr}{tbody}{tbody}{tr}{td}[BooleanJSForm]{td}{td}[#removeGlobalVariable#newForm]\(scopeNamename, dataSource, styleName, show_in_menu, width, nameheight)
RemovesCreates thea specifiednew globalJSForm variableObject.{td}{tr}{tbody}{tbody}{tr}{td}[JSForm]{td}{td}[#revertForm#newForm]\(name), RevertsserverName, thetableName, specified form to the original (blueprint) version of the form; will result in an exception error if the form is not an original formstyleName, 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}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=getForm|class=node}{tr:id=name}{td}h6.getForm[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}[JSList]{td}{td}[#newListForm]\(formName, dataSource, textDataProviderID)
Creates a new list form, similar to an inset list but without the inset list's header and relation.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeForm]\(name)
Removes the specified form during the persistent connected client session.{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{sub-section}{sub-section:getForm_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the form
{sub-section}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}[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:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=getForm|class=node}{tr:id=name}{td}h6.getForm{td}{tr}{tr:id=retsig}{td}*Returns*\\{sub-section:getForm_ret|trigger=button|text=}{sub-section}{sub-section:getForm_ret|trigger=none|class=sIndent}[JSForm] -- a JSForm{sub-section{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}{builder-show:permission=edit}{tr:id=seedes}{td}*Also see*\\{sub-section:getForm_seedes|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForm_seedes|trigger=none|class=sIndent}Replace with description{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksnc}{td}*External linksSince*\\{sub-section:getForm_linksnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForm_linksnc|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:getForm_samprs|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForm_samprs|trigger=none|class=sIndent}{code:language=javascript\{[String]} varname myForm-- = solutionModel.getForm('existingFormName');
//get the style the specified name of the form
(for all other properties see JSForm node)
var styleName = myForm.styleName;
{code}{sub-section}{div}{td}{tr}{tr:classid=lastDetailRowret}{td}{td}{tr}{tbody}{tbody:id=getForms|class=node}{tr:id=name}{td}h6.getForms{td}{tr*Returns*\\{sub-section:getForm_ret|trigger=button|text=}{sub-section}{sub-section:getForm_ret|trigger=none|class=sIndent}[JSForm] -- a JSForm{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sigsee}{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*Also see*\\{sub-section:getForm_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForm_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=deslink}{td}*External links*\\{sub-section:getFormsgetForm_deslink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getFormsgetForm_deslink|trigger=none|class=sIndent}Get an array of all forms.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=sncsam}{td}*SinceSample*\\{sub-section:getFormsgetForm_sncsam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getFormsgetForm_sncsam|trigger=none|class=sIndent} Replace with version info}{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}{builder-show}{builder-show:permission=edit}{tr:id=prstr:class=lastDetailRow}{td}{td}*Parameters*\\{sub-section:getForms_prs|trigger=button|text=}{sub-section}{sub-section:getForms_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show{tr}{tbody}{tbody:id=getForms|class=node}{tr:id=name}{td}h6.getForms{td}{tr}{tr:id=retsig}{td}*Returns*\\{sub-section:getForms_ret|trigger=button|text=}{sub-section}{sub-section:getForms_ret|trigger=none|class=sIndent}[JSForm]\[] -- an array of JSForm type elements{sub-section{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}{builder-show:permission=edit}{tr:id=seedes}{td}*Also see*\\{sub-section:getForms_seedes|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms_seedes|trigger=none|class=sIndent}Replace with description{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksnc}{td}*Since*External links*\\{sub-section:getForms_linksnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms_linksnc|trigger=none|class=sIndent} Replace with version info{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:getForms_samprs|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms_samprs|trigger=none}{code:language=javascript}
var forms = solutionModel.getForms()
for (var i in forms)
	application.output(forms[i].name)
{code|class=sIndent}{sub-section}{divtd}{tdtr}{trbuilder-show}{tr:classid=lastDetailRowret}{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;*Returns*\\{sub-section:getForms_ret|trigger=button|text=}{sub-section}{sub-section:getForms_ret|trigger=none|class=sIndent}[JSForm]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getForms{span}{span:id=iets|style=float: left;}\(datasource){span -- an array of JSForm type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=dessee}{td}*Also see*\\{sub-section:getForms-String_dessee|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_dessee|trigger=none|class=sIndent}Get an array of forms, that are all based on datasource/servername.}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snclink}{td}*SinceExternal links*\\{sub-section:getForms-String_snclink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_snclink|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{tr:id=prssam}{td}*ParametersSample*\\{sub-section:getForms-String_prssam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_prssam|trigger=none|class=sIndent}\{[String]} datasource -- the datasource or servername
{{code:language=javascript}
var forms = solutionModel.getForms()
for (var i in forms)
	application.output(forms[i].name)
{code}{sub-section}{div}{td}{tr}{tr:id=retclass=lastDetailRow}{td}{td}*Returns*\\{sub-section:getForms-String_ret|trigger=button|text=}{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}{tbody}{tbody:id=getForms-String|class=node}{tr:id=name}{td}h6.getForms{td}{tr}{tr:id=seesig}{td}*Also see*\\{sub-section:getForms-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{{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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getForms-String_seedes|trigger=button|text=none}{sub-section}{divsub-section:getForms-String_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksnc}{td}*External linksSince*\\{sub-section:getForms-String_linksnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_linksnc|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:getForms-String_samprs|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_samprs|trigger=none|class=sIndent}{code:language=javascript\{[String]} vardatasource forms-- =the solutionModel.getForms(datasource) for (var i in forms)
	application.output(forms[i].name)
{code}{or servername
{sub-section}{div}{td}{tr}{tr:classid=lastDetailRowret}{td}{td}{tr}{tbody}{tbody:id=*Returns*\\{sub-section:getForms-String_ret|trigger=button|text=}{sub-section}{sub-section:getForms-String_Stringret|trigger=none|class=node}{tr:id=namesIndent}[JSForm]\[] -- an array of JSForm type elements{sub-section}{td}h6.getForms{tdtr}{trbuilder-show:permission=edit}{tr:id=sigsee}{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*Also see*\\{sub-section:getForms-String_see|trigger=button|text=}{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=deslink}{td}*External links*\\{sub-section:getForms-String_String_deslink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_String_deslink|trigger=none|class=sIndent}Get an array of forms, that are all based on datasource/servername and tablename.{}{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=sncsam}{td}*SinceSample*\\{sub-section:getForms-String_String_sncsam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_String_sncsam|trigger=none|class=sIndent} Replace with version info}{code:language=javascript}
var forms = solutionModel.getForms(datasource)
for (var i in forms)
	application.output(forms[i].name)
{code}{sub-section}{div}{td}{tr}{builder-show}{tr:id=prsclass=lastDetailRow}{td}{td}*Parameters*\\{sub-section:{tr}{tbody}{tbody:id=getForms-String_String_prs|trigger=button|text=}{sub-section}{sub-section:getForms-String_String_prs|trigger=none|class=sIndent}\{[String]} server -- the datasource or servername
\{[String]} tablename -- the tablename
{sub-sectionclass=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}{builder-show:permission=edit}{tr:id=retdes}{td}*Returns*\\{sub-section:getForms-String_String_retdes|trigger=button|text=}{sub-section}{sub-section:getForms-String_String_retdes|trigger=none|class=sIndent}[JSForm]\[] -- an array of JSForm type elementsReplace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=seesnc}{td}*Also seeSince*\\{sub-section:getForms-String_String_seesnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_String_seesnc|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkprs}{td}*External linksParameters*\\{sub-section:getForms-String_String_linkprs|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_String_linkprs|trigger=none|class=sIndent}\{[String]} server -- the datasource or servername
\{[String]} tablename -- the tablename
{sub-section}{div}{td}{tr}{builder-show}{tr:id=samret}{td}*SampleReturns*\\{sub-section:getForms-String_String_samret|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_String_samret|trigger=none}{code:language=javascript}
var forms = solutionModel.getForms(datasource,tablename)
for (var i in forms)
	application.output(forms[i].name)
{code}{|class=sIndent}[JSForm]\[] -- an array of JSForm type elements{sub-section}{divtd}{tdtr}{trbuilder-show:permission=edit}{tr:classid=lastDetailRowsee}{td}{td}{tr}{tbody}{tbody:id=getGlobalMethod*Also see*\\{sub-section:getForms-String_String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getForms-String_String_see|classtrigger=nodenone}{tr:id=namesub-section}{tddiv}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}builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getGlobalMethodgetForms-String_String_deslink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethodgetForms-String_String_deslink|trigger=none|class=sIndent}Gets an existing global method by the specified name.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=sncsam}{td}*SinceSample*\\{sub-section:getGlobalMethodgetForms-String_String_sncsam|trigger=button|text=}{sub-section}{subdiv:class=sIndent}{sub-section:getGlobalMethodgetForms-String_String_sncsam|trigger=none|class=sIndent} Replace with version info}{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}{builder-show}{tr:id=prsclass=lastDetailRow}{td}{td}*Parameters*\\{sub-section:getGlobalMethod-String_String_prs|trigger=button|text=}{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}{tbody}{tbody:id=getGlobalMethod|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}{builder-show:permission=edit}{tr:id=retdes}{td}*Returns*\\{sub-section:getGlobalMethod-String_String_retdes|trigger=button|text=}{sub-section}{sub-section:getGlobalMethod-String_String_retdes|trigger=none|class=sIndent}[JSMethod] -- a JSMethodReplace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=seesnc}{td}*Also seeSince*\\{sub-section:getGlobalMethod-String_String_seesnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethod-String_String_seesnc|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkprs}{td}*External linksParameters*\\{sub-section:getGlobalMethod-String_String_linkprs|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethod-String_String_linkprs|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}{div}{td}{tr}{builder-show}{tr:id=samret}{td}*SampleReturns*\\{sub-section:getGlobalMethod-String_String_sam|_ret|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethod-String_String_samret|trigger=none}{code:language=javascript}
var method = solutionModel.getGlobalMethod('globals', 'nameOfGlobalMethod'); 
if (method != null) application.output(method.code);
{code}|class=sIndent}[JSMethod] -- a JSMethod{sub-section}{div}{td}{tr}{trbuilder-show:classpermission=lastDetailRowedit}{tdtr:id=see}{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*Also see*\\{sub-section:getGlobalMethod_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethod_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getGlobalMethod_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethodsgetGlobalMethod_deslink|trigger=none|class=sIndent}The list of all global methods.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=sncsam}{td}*SinceSample*\\{sub-section:getGlobalMethodsgetGlobalMethod_sncsam|trigger=button|text=}{sub-section}{sub-section:getGlobalMethods_sncdiv:class=sIndent}{sub-section:getGlobalMethod_sam|trigger=none|class=sIndent} Replace with version info}{code:language=javascript}
var method = solutionModel.getGlobalMethod('globals', 'nameOfGlobalMethod'); 
if (method != null) application.output(method.code);
{code}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prstr:class=lastDetailRow}{td}{td}*Parameters*\\{sub-section:getGlobalMethods_prs|trigger=button|text=}{sub-section}{sub-section:getGlobalMethods_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show{tr}{tbody}{tbody:id=getGlobalMethods|class=node}{tr:id=name}{td}h6.getGlobalMethods{td}{tr}{tr:id=retsig}{td}*Returns*\\{sub-section:getGlobalMethods_ret|trigger=button|text=}{sub-section}{sub-section:getGlobalMethods_ret|trigger=none|class=sIndent}[JSMethod]\[] -- an array of JSMethod type elements{sub-section{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}{builder-show:permission=edit}{tr:id=seedes}{td}*Also see*\\{sub-section:getGlobalMethods_seedes|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods_seedes|trigger=none|class=sIndent}Replace with description{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksnc}{td}*External linksSince*\\{sub-section:getGlobalMethods_linksnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods_linksnc|trigger=none|class=sIndent} Replace with version info{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:getGlobalMethods_samprs|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods_samprs|trigger=none}{code:language=javascript}
var methods = solutionModel.getGlobalMethods('globals'); 
for (var x in methods) 
	application.output(methods[x].getName());
{code|class=sIndent}{sub-section}{divtd}{tdtr}{trbuilder-show}{tr:classid=lastDetailRowret}{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*Returns*\\{sub-section:getGlobalMethods_ret|trigger=button|text=}{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=dessee}{td}*Also see*\\{sub-section:getGlobalMethods-String_dessee|trigger=button|text=}{sub-section}{subdiv:class=sIndent}{sub-section:getGlobalMethods-String_dessee|trigger=none|class=sIndent}The list of all global methods.{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snclink}{td}*SinceExternal links*\\{sub-section:getGlobalMethods-String_snclink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods-String_snclink|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{tr:id=prssam}{td}*ParametersSample*\\{sub-section:getGlobalMethods-String_prssam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods-String_prssam|trigger=none|class=sIndent}\{[String]} scopeName -- limit to global methods of specified scope name
{sub-section}{td}{{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:id=retclass=lastDetailRow}{td}{td}*Returns*\\{sub-section:getGlobalMethods-String_ret|trigger=button|text=}{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}{tbody}{tbody:id=getGlobalMethods-String|class=node}{tr:id=name}{td}h6.getGlobalMethods{td}{tr}{tr:id=seesig}{td}*Also see*\\{sub-section:getGlobalMethods-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods-String_see|trigger=none}{sub-section}{div{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}{builder-show}{builder-show:permission=edit}{tr:id=linkdes}{td}*External links*\\{sub-section:getGlobalMethods-String_linkdes|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods-String_linkdes|trigger=none|class=sIndent}Replace with description{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=samsnc}{td}*SampleSince*\\{sub-section:getGlobalMethods-String_samsnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalMethods-String_samsnc|trigger=none}{code:language=javascript|class=sIndent} varReplace methodswith = solutionModel.getGlobalMethods('globals'); 
for (var x in methods) 
	application.output(methods[x].getName());
{code}{version info{sub-section}{divtd}{tdtr}{trbuilder-show}{tr:classid=lastDetailRowprs}{td}{td}{tr}{tbody}{tbody:id=getGlobalVariable-String_String|class=node}{tr:id=name}{td}h6.getGlobalVariable*Parameters*\\{sub-section:getGlobalMethods-String_prs|trigger=button|text=}{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=sigret}{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}{*Returns*\\{sub-section:getGlobalVariablegetGlobalMethods-String_String_desret|trigger=button|text=}{sub-section}{sub-section:getGlobalVariablegetGlobalMethods-String_String_desret|trigger=none|class=sIndent}Gets[JSMethod]\[] -- an existingarray globalof variableJSMethod by the specified name.type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncsee}{td}*SinceAlso see*\\{sub-section:getGlobalVariablegetGlobalMethods-String_String_sncsee|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariablegetGlobalMethods-String_String_sncsee|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:getGlobalVariablegetGlobalMethods-String_String_prslink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariablegetGlobalMethods-String_String_prslink|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{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:getGlobalVariablegetGlobalMethods-String_String_retsam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariablegetGlobalMethods-String_String_retsam|trigger=none|class=sIndent}[JSVariable] -- a JSVariable}{code:language=javascript}
var methods = solutionModel.getGlobalMethods('globals'); 
for (var x in methods) 
	application.output(methods[x].getName());
{code}{sub-section}{div}{td}{tr}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=seetd}{td}*Also see*\\{sub-section:getGlobalVariable-String_String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariable-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show{tr}{tbody}{tbody:id=getGlobalVariable|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}{builder-show:permission=edit}{tr:id=linkdes}{td}*External links*\\{sub-section:getGlobalVariable-String_String_linkdes|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariable-String_String_linkdes|trigger=none|class=sIndent}Replace with description{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samsnc}{td}*SampleSince*\\{sub-section:getGlobalVariable-String_String_samsnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariable-String_String_samsub-section:getGlobalVariable_snc|trigger=none}{code:language=javascript|class=sIndent} varReplace globalVariablewith = solutionModel.getGlobalVariable('globals', 'globalVariableName');
application.output(globalVariable.name + " has the default value of " + globalVariable.defaultValue);
{code}{version info{sub-section}{divtd}{tdtr}{trbuilder-show}{tr:classid=lastDetailRowprs}{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*Parameters*\\{sub-section:getGlobalVariable_prs|trigger=button|text=}{sub-section}{sub-section:getGlobalVariable_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=desret}{td}*Returns*\\{sub-section:getGlobalVariablesgetGlobalVariable_desret|trigger=button|text=}{sub-section}{sub-section:getGlobalVariablesgetGlobalVariable_desret|trigger=none|class=sIndent}Gets an array of all global variables.{sub[JSVariable] -- a JSVariable{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncsee}{td}*SinceAlso see*\\{sub-section:getGlobalVariablesgetGlobalVariable_sncsee|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariablesgetGlobalVariable_sncsee|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:getGlobalVariablesgetGlobalVariable_prslink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariablesgetGlobalVariable_prslink|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:getGlobalVariablesgetGlobalVariable_retsam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariablesgetGlobalVariable_retsam|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|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables_see|trigger=none}{sub-section}{div}{}{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}{builder-showtbody}{builder-show:permission=edittbody:id=getGlobalVariables|class=node}{tr:id=linkname}{td}*External links*\\{sub-section:getGlobalVariables_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables_link|trigger=none}{sub-section}{divh6.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}{builder-show:permission=edit}{tr:id=samdes}{td}*Sample*\\{sub-section:getGlobalVariables_samdes|trigger=button|text=}{sub-section}{div:sub-section:getGlobalVariables_des|trigger=none|class=sIndent}Replace with description{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}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getGlobalVariables_snc|trigger=button|text=}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{tdsub-section:getGlobalVariables_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{tbodybuilder-show}{tbodybuilder-show:id=getGlobalVariables-String|class=nodepermission=edit}{tr:id=nameprs}{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*Parameters*\\{sub-section:getGlobalVariables_prs|trigger=button|text=}{sub-section}{sub-section:getGlobalVariables_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=desret}{td}*Returns*\\{sub-section:getGlobalVariables-String_desret|trigger=button|text=}{sub-section}{sub-section:getGlobalVariables-String_desret|trigger=none|class=sIndent}Gets[JSVariable]\[] -- an array of allJSVariable globaltype variables.elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncsee}{td}*SinceAlso see*\\{sub-section:getGlobalVariables-String_sncsee|trigger=button|text=}{sub-section}{sub-section:getGlobalVariables-String_sncdiv:class=sIndent}{sub-section:getGlobalVariables_see|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:getGlobalVariables-String_prslink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables-String_prslink|trigger=none|class=sIndent}\{[String]} scopeName -- limit to global vars of specified scope name
{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:getGlobalVariables-String_retsam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables-String_retsam|trigger=none|class=sIndent}[JSVariable]\[] -- an array of JSVariable type elements}{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}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=seetd}{td}*Also see*\\{sub-section:getGlobalVariables-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables-String_see|trigger=none}{sub-section}{div}{tr}{tbody}{tbody:id=getGlobalVariables-String|class=node}{tr:id=name}{td}h6.getGlobalVariables{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getGlobalVariables-String_linkdes|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables-String_linkdes|trigger=none|class=sIndent}Replace with description{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=samsnc}{td}*SampleSince*\\{sub-section:getGlobalVariables-String_samsnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getGlobalVariables-String_samsub-section:getGlobalVariables-String_snc|trigger=none}{code:language=javascript|class=sIndent} varReplace globalVariableswith = solutionModel.getGlobalVariables('globals');
for (var i in globalVariables)
	application.output(globalVariables[i].name + " has the default value of " + globalVariables[i].defaultValue);
{code}{version info{sub-section}{divtd}{tdtr}{trbuilder-show}{tr:classid=lastDetailRowprs}{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*Parameters*\\{sub-section:getGlobalVariables-String_prs|trigger=button|text=}{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=desret}{td}*Returns*\\{sub-section:getScopeNamesgetGlobalVariables-String_desret|trigger=button|text=}{sub-section}{sub-section:getScopeNamesgetGlobalVariables-String_desret|trigger=none|class=sIndent}Gets[JSVariable]\[] -- an array of allJSVariable scope names used.type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncsee}{td}*SinceAlso see*\\{sub-section:getScopeNamesgetGlobalVariables-String_sncsee|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getScopeNamesgetGlobalVariables-String_sncsee|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:getScopeNamesgetGlobalVariables-String_prslink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getScopeNamesgetGlobalVariables-String_prslink|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:getScopeNamesgetGlobalVariables-String_retsam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getScopeNamesgetGlobalVariables-String_retsam|trigger=none|class=sIndent}[String]\[] -- an array of String scope names{sub-section}{}{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}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=seetd}{td}*Also see*\\{sub-section:getScopeNames_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getScopeNames_see|trigger=none}{sub-section}{div}{{tr}{tbody}{tbody:id=getListForm|class=node}{tr:id=name}{td}h6.getListForm{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksig}{td}*External links*\\{sub-section:getScopeNames_link{span:style=float: left; margin-right: 5px;}[JSList]{span}{span:id=iets|style=float: left; font-weight: bold;}getListForm{span}{span:id=iets|style=float: left;}\(formName){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getListForm_des|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getScopeNamesgetListForm_linkdes|trigger=none|class=sIndent}Replace with description{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=samsnc}{td}*SampleSince*\\{sub-section:getScopeNamesgetListForm_samsnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-sub-section:getScopeNamesgetListForm_samsnc|trigger=none}{code:language=javascript|class=sIndent} varReplace scopeNameswith = solutionModel.getScopeNames();
for (var name in scopeNames)
	application.output(name);
{code}{version info{sub-section}{divtd}{tdtr}{trbuilder-show}{tr:classid=lastDetailRowprs}{td}{td}{tr}{tbody}{tbody:id=getValueList|class=node}{tr:id=name}{td}h6.getValueList*Parameters*\\{sub-section:getListForm_prs|trigger=button|text=}{sub-section}{sub-section:getListForm_prs|trigger=none|class=sIndent}formName -- the form's name.
{sub-section}{td}{tr}{tr:id=sigret}{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*Returns*\\{sub-section:getListForm_ret|trigger=button|text=}{sub-section}{sub-section:getValueListgetListForm_desret|trigger=none|class=sIndent}Gets an existing valuelist by[JSList] -- the specifiedexisting namelist andform, returnsor anull JSValueListif Objectit thatdoes can be assigned to a fieldnot exist.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncsee}{td}*SinceAlso see*\\{sub-section:getValueListgetListForm_sncsee|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueListgetListForm_sncsee|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:getValueListgetListForm_prslink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueListgetListForm_prslink|trigger=none|class=sIndent}\{[String]} name -- the specified name of the valuelist
{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:getValueListgetListForm_retsam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueListgetListForm_retsam|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|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueList_see|trigger=none}{sub-section}{div}{}{code:language=javascript}
var list = solutionModel.getListForm('created_by_sm_2');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-showtbody}{builder-show:permission=edittbody:id=getListForms|class=node}{tr:id=linkname}{td}*External links*\\{sub-section:getValueList_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueList_link|trigger=none}{sub-section}{divh6.getListForms{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSList]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getListForms{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=samdes}{td}*Sample*\\{sub-section:getValueListgetListForms_samdes|trigger=button|text=}{sub-section}{div:sub-section:getListForms_des|trigger=none|class=sIndent}Replace with description{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}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getListForms_snc|trigger=button|text=}{sub-section}{sub-section:getListForms_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{trbuilder-show:classpermission=lastDetailRowedit}{tdtr:id=prs}{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*Parameters*\\{sub-section:getListForms_prs|trigger=button|text=}{sub-section}{sub-section:getListForms_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getListForms_ret|trigger=button|text=}{sub-section}{sub-section:getValueListsgetListForms_desret|trigger=none|class=sIndent}Gets[JSList]\[] -- an array of allIBaseSHList valuelists for the currently active solution.type elements{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncsee}{td}*SinceAlso see*\\{sub-section:getValueListsgetListForms_sncsee|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueListsgetListForms_sncsee|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:getValueListsgetListForms_prslink|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueListsgetListForms_prslink|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:getValueListsgetListForms_retsam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueListsgetListForms_retsam|trigger=none|class=sIndent}[JSValueList]\[] -- an array of JSValueList objects}{code:language=javascript}
var forms = solutionModel.getListForms()
for (var i in forms)
	application.output(forms[i].name)
{code}{sub-section}{div}{td}{tr}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=seetd}{td}*Also see*\\{sub-section:getValueLists_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueLists_see|trigger=none}{sub-section}{div{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}{builder-show}{builder-show:permission=edit}{tr:id=linkdes}{td}*External links*\\{sub-section:getValueListsgetScopeNames_linkdes|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueLists_linksub-section:getScopeNames_des|trigger=none|class=sIndent}Replace with description{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=samsnc}{td}*SampleSince*\\{sub-section:getValueListsgetScopeNames_samsnc|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getValueListsgetScopeNames_samsnc|trigger=none}{code:language=javascript|class=sIndent} varReplace valueListswith = solutionModel.getValueLists();
if (valueLists != null && valueLists.length != 0)
	for (var i in valueLists)
		application.output(valueLists[i].name);
{code}{version info{sub-section}{divtd}{tdtr}{trbuilder-show}{trbuilder-show:classpermission=lastDetailRowedit}{tdtr:id=prs}{td}{tr}{tbody}{tbody:id=newForm-String_String_String_Boolean_Number_Number|class=node}{tr:id=name}{td}h6.newForm{td}{tr*Parameters*\\{sub-section:getScopeNames_prs|trigger=button|text=}{sub-section}{sub-section:getScopeNames_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=sigret}{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*Returns*\\{sub-section:getScopeNames_ret|trigger=button|text=}{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=dessee}{td}*Also see*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_desgetScopeNames_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_Boolean_Number_Number_desgetScopeNames_see|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}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_sncgetScopeNames_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_Boolean_Number_Number_sncgetScopeNames_link|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{tr:id=prssam}{td}*ParametersSample*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_prs|triggergetScopeNames_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_Boolean_Number_Number_prsgetScopeNames_sam|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 --{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=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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getValueList_des|trigger=button|text=}{sub-section}{sub-section:getValueList_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getValueList_snc|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getValueLists_des|trigger=button|text=}{sub-section}{sub-section:getValueLists_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getValueLists_snc|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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_String|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){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newForm-String_String_des|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newForm-String_String_snc|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_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_prs|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_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
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newForm-String_String_ret|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_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_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_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_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newForm-String_String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_sam|trigger=none}{code:language=javascript}
var myForm = solutionModel.newForm('newForm', 'db:/my_server/my_table')
//now you can add stuff to the form (under JSForm node)
//add a label
myForm.newLabel('Name', 1)
//add a "normal" text entry field
myForm.newTextField('dataProviderNameHere', 2)
{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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newForm-String_String_String_Boolean_Number_Number_des|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_String_Boolean_Number_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newForm-String_String_String_Boolean_Number_Number_snc|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_des|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newForm-String_String_String_String_Boolean_Number_Number_snc|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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', 'db:/my_server/my_table', 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=newForm-String_String_String_String_Boolean_Number_NumbernewGlobalMethod|class=node}{tr:id=name}{td}h6.newFormnewGlobalMethod{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSFormJSMethod]{span}{span:id=iets|style=float: left; font-weight: bold;}newFormnewGlobalMethod{span}{span:id=iets|style=float: left;}\(namescopeName, serverName, tableName, styleName, show_in_menu, width, heightcode){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newForm-String_String_String_String_Boolean_Number_NumbernewGlobalMethod_des|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_newGlobalMethod_des|trigger=none|class=sIndent}CreatesReplace a new JSForm Object.

NOTE: See the JSForm node for more information about form objects that can be added to the new form.with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newForm-String_String_String_String_Boolean_Number_Number_newGlobalMethod_snc|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_String_String_Boolean_Number_NumbernewGlobalMethod_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_newGlobalMethod_prs|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_newGlobalMethod_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]} styleNamescopeName -- the specified style
\{[Boolean]} show_in_menu -- if true showscope in which the namemethod of the new form in the menu; or false for not showing
is created
\{[NumberString]} widthcode -- the widthspecified of the form in pixels
\{[Number]} height -- the height of the form in pixels
code for the global method
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newForm-String_String_String_String_Boolean_Number_NumbernewGlobalMethod_ret|trigger=button|text=}{sub-section}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_newGlobalMethod_ret|trigger=none|class=sIndent}[JSFormJSMethod] -- a newJSMethod 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_{sub-section:newGlobalMethod_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_newGlobalMethod_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_NumbernewGlobalMethod_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newForm-String_String_String_String_Boolean_Number_Number_newGlobalMethod_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newForm-String_String_String_String_Boolean_Number_NumbernewGlobalMethod_sam|trigger=button|text=}{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 myFormsub-section:newGlobalMethod_sam|trigger=none}{code:language=javascript}
var method = solutionModel.newFormnewGlobalMethod('newFormglobals', 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,20function myglobalmethod(){foundset.newRecord()}')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newGlobalMethod-String_StringnewGlobalVariable|class=node}{tr:id=name}{td}h6.newGlobalMethodnewGlobalVariable{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMethodJSVariable]{span}{span:id=iets|style=float: left; font-weight: bold;}newGlobalMethodnewGlobalVariable{span}{span:id=iets|style=float: left;}\(scopeName, codename, type){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newGlobalMethod-String_StringnewGlobalVariable_des|trigger=button|text=}{sub-section}{sub-section:newGlobalMethod-StringnewGlobalVariable_String_des|trigger=none|class=sIndent}Creates a new global methodReplace with the specified code in a scope.description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newGlobalMethod-StringnewGlobalVariable_String_snc|trigger=button|text=}{sub-section}{sub-section:newGlobalMethod-String_StringnewGlobalVariable_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newGlobalMethod-String_StringnewGlobalVariable_prs|trigger=button|text=}{sub-section}{sub-section:newGlobalMethod-StringnewGlobalVariable_String_prs|trigger=none|class=sIndent}\{[String]} scopeName -- the scope in which the methodvariable is created
\{[String]} name -- the specified name for the global variable
\{[Number]} codetype -- the specified number codetype for the global methodvariable
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newGlobalMethod-StringnewGlobalVariable_String_ret|trigger=button|text=}{sub-section}{sub-section:newGlobalMethod-StringnewGlobalVariable_String_ret|trigger=none|class=sIndent}[JSMethodJSVariable] -- a JSMethodJSVariable object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newGlobalMethod-StringnewGlobalVariable_String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newGlobalMethod-String_StringnewGlobalVariable_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newGlobalMethod-StringnewGlobalVariable_String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newGlobalMethod-StringnewGlobalVariable_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newGlobalMethod-StringnewGlobalVariable_String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newGlobalMethod-StringnewGlobalVariable_String_sam|trigger=none}{code:language=javascript}
var method = solutionModel.newGlobalMethod('globals', 'function myglobalmethod(){currentcontroller.newRecord()}'):language=javascript}
var myGlobalVariable = solutionModel.newGlobalVariable('globals', 'newGlobalVariable', JSVariable.INTEGER); 
myGlobalVariable.defaultValue = 12;
//myGlobalVariable.defaultValue = "{a:'First letter',b:'Second letter'}" // an js object, type must be media.
//myGlobalVariable.defaultValue = '"some text"'; // Use two pairs of quotes if you want to assign a String as default value.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newGlobalVariable-String_String_NumbernewListForm|class=node}{tr:id=name}{td}h6.newGlobalVariablenewListForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSVariableJSList]{span}{span:id=iets|style=float: left; font-weight: bold;}newGlobalVariablenewListForm{span}{span:id=iets|style=float: left;}\(scopeNameformName, namedataSource, typetextDataProviderID){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newGlobalVariable-String_String_NumbernewListForm_des|trigger=button|text=}{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.newListForm_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newGlobalVariable-String_String_Number_newListForm_snc|trigger=button|text=}{sub-section}{sub-section:newGlobalVariable-String_String_Number_newListForm_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_newListForm_prs|trigger=button|text=}{sub-section}{sub-section:newGlobalVariable-String_String_Number_newListForm_prs|trigger=none|class=sIndent}\{[String]} scopeNameformName -- the scopenew in which the variable is created
form's name.
\{[String]} namedataSource -- the specified name for the global variablelist will be populated based on this datasource.
\{[NumberString]} typetextDataProviderID -- can be null; it's a convenience argument for setting the specified number type for the global variable dataprovider that will be used to populate the main text area of the list's items.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newGlobalVariable-String_String_Number_newListForm_ret|trigger=button|text=}{sub-section}{sub-section:newGlobalVariable-String_String_Number_newListForm_ret|trigger=none|class=sIndent}[JSVariableJSList] -- the anewly created JSVariablelist objectform.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newGlobalVariable-String_String_Number_newListForm_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newGlobalVariable-String_String_Number_newListForm_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_newListForm_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newGlobalVariable-String_String_Number_newListForm_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newGlobalVariable-String_String_NumbernewListForm_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newGlobalVariable-String_String_Number_newListForm_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'}" // an js object, type must be media.
//myGlobalVariable.defaultValue = '"some text"'; // Use two pairs of quotes if you want to assign a String as default value.code:language=javascript}
var f = solutionModel.newForm("created_by_sm_1","udm","contacts",null,false,100,380);
// create a button to go to it on the main form
b = f.newButton("Show created list form",0,9,10,10,
	f.newMethod("function showListForm() { forms.created_by_sm_2.controller.show(); }"));
// create the actual list form
var list = f.createListForm('created_by_sm_2', databaseManager.getDataSource("udm","contacts"),"name_first");
list.onAction = solutionModel.getForm('created_by_sm_2').newMethod("function goBack() { history.back(); }");
{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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeForm_des|trigger=button|text=}{sub-section}{sub-section:removeForm_des|trigger=none|class=sIndent}RemovesReplace the specified form during the persistent connected client session.

NOTE: Make sure you call history.remove first in your Servoy method (script).with description{sub-section}{td}{tr{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeForm_snc|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeGlobalMethod-String_String_des|trigger=button|text=}{sub-section}{sub-section:removeGlobalMethod-String_String_des|trigger=none|class=sIndent}RemovesReplace the specified global method.with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeGlobalMethod-String_String_snc|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeGlobalVariable-String_String_des|trigger=button|text=}{sub-section}{sub-section:removeGlobalVariable-String_String_des|trigger=none|class=sIndent}RemovesReplace the specified global variable.with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeGlobalVariable-String_String_snc|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{sub-section}{sub-section:removeGlobalVariable-StringremoveGlobalVariable_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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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=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}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:revertForm_des|trigger=button|text=}{sub-section}{sub-section:revertForm_des|trigger=none|class=sIndent}RevertsReplace 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.with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:revertForm_snc|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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|trigger=button|text=}{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}{table}