Child pages
  • JSForm

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 sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#dataSource]
The names of the database server and table that this form is linked to.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#name]
The name of the form.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#navigator]
The navigator (previously named "controller")
that is used to control/navigate to the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onHide]
The method that is triggered when another form is being activated.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onLoad]
The method that is triggered when a form is loaded/reloaded from the repository; used to alter elements, set globals, hide toolbars, 
etc; onShow method can also be assigned.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onRecordSelection]
The method that is triggered each time a record is selected.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onShow]
The method that is triggered EVERY TIME the form is displayed; an argument must be passed to the method if this is the first time the form is displayed.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#serverName]
Get the server name used by this form.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#tableName]
The \[name of the table/SQL view\].{td}{tr}{tbody}{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}[JSBean]{td}{td}[#getBean]\(name)
Returns a JSBean that has the given name.{td}{tr}{tbody}{tbody}{tr}{td}[JSButton]{td}{td}[#getButton]\(name)
Returns a JSButton that has the given name.{td}{tr}{tbody}{tbody}{tr}{td}[JSButton]\[]{td}{td}[#getButtons]\()
Returns all JSButtons of this form, including the ones without a name.{td}{tr}{tbody}{tbody}{tr}{td}[JSComponent]{td}{td}[#getComponent]\(name)
Returns a JSComponent that has the given name; if found it will be a JSField, JSLabel, JSButton, JSPortal, JSBean or JSTabPanel.{td}{tr}{tbody}{tbody}{tr}{td}[JSComponent]\[]{td}{td}[#getComponents]\()
Returns a array of all the JSComponents that a form has; they are of type JSField,JSLabel,JSButton,JSPortal,JSBean or JSTabPanel.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#getField]\(name)
The field with the specified name.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]\[]{td}{td}[#getFields]\()
Returns all JSField objects of this form, including the ones without a name.{td}{tr}{tbody}{tbody}{tr}{td}[JSFooter]{td}{td}[#getFooter]\()
Get the Footer part on the form if it exists.{td}{tr}{tbody}{tbody}{tr}{td}[JSHeader]{td}{td}[#getHeader]\()
Get the Header part on the form if it exists.{td}{tr}{tbody}{tbody}{tr}{td}[JSInsetList]{td}{td}[#getInsetList]\(name)
Returns an existing inset list.{td}{tr}{tbody}{tbody}{tr}{td}[JSInsetList]\[]{td}{td}[#getInsetLists]\()
Gets all insets lists on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSLabel]{td}{td}[#getLabel]\(name)
Returns a JSLabel that has the given name.{td}{tr}{tbody}{tbody}{tr}{td}[JSLabel]\[]{td}{td}[#getLabels]\()
Returns all JSLabels of this form (not including its super form), including the ones without a name.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#getMethod]\(name)
Gets an existing form method for the given name.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]\[]{td}{td}[#getMethods]\()
Returns all existing form methods for this form.{td}{tr}{tbody}{tbody}{tr}{td}[JSPart]{td}{td}[#getPart]\(type)
Gets a part of the form from the given type (see JSPart constants).{td}{tr}{tbody}{tbody}{tr}{td}[JSVariable]{td}{td}[#getVariable]\(name)
Gets an existing form variable for the given name.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariable]\[]{td}{td}[#getVariables]\()
An array consisting of all form variables for this form.{td}{tr}{tbody}{tbody}{tr}{td}[JSBean]{td}{td}[#newBean]\(name, y)
Creates a new JSBean object on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSButton]{td}{td}[#newButton]\(txt, y, jsmethod)
Creates a new button on the form with the given text.{td}{tr}{tbody}{tbody}{tr}{td}[JSCalendar]{td}{td}[#newCalendar]\(dataprovider, y)
Creates a new JSCalendar field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSCalendar]{td}{td}[#newCalendar]\(dataprovider, y)
Creates a new JSCalendar field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSChecks]{td}{td}[#newCheck]\(dataprovider, y)
Creates a new JSChecks field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSChecks]{td}{td}[#newCheck]\(dataprovider, y)
Creates a new JSChecks field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSCombobox]{td}{td}[#newCombobox]\(dataprovider, y)
Creates a new JSCombobox field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSCombobox]{td}{td}[#newCombobox]\(dataprovider, y)
Creates a new JSCombobox field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newField]\(dataprovider, type, y)
Creates a new JSField object on the form .{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newField]\(dataprovider, type, y)
Creates a new JSField object on the form .{td}{tr}{tbody}{tbody}{tr}{td}[JSFooter]{td}{td}[#newFooter]\()
Creates a new Footer part on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSHeader]{td}{td}[#newHeader]\()
Creates a new Header part on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSInsetList]{td}{td}[#newInsetList]\(yLocation, relationName, headerText, textDataProviderID)
Creates a new inset list mobile component in the given form.{td}{tr}{tbody}{tbody}{tr}{td}[JSLabel]{td}{td}[#newLabel]\(txt, y)
Creates a new JSLabel object on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#newMethod]\(code)
Creates a new form JSMethod \- based on the specified code.{td}{tr}{tbody}{tbody}{tr}{td}[JSPassword]{td}{td}[#newPassword]\(dataprovider, y)
Creates a new JSPassword field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSPassword]{td}{td}[#newPassword]\(dataprovider, y)
Creates a new JSPassword field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSRadios]{td}{td}[#newRadios]\(dataprovider, y)
Creates a new JSRadios field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSRadios]{td}{td}[#newRadios]\(dataprovider, y)
Creates a new JSRadios field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSTextArea]{td}{td}[#newTextArea]\(dataprovider, y)
Creates a new JSTextArea field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSTextArea]{td}{td}[#newTextArea]\(dataprovider, y)
Creates a new JSTextArea field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSText]{td}{td}[#newTextField]\(dataprovider, y)
Creates a new JSText field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSText]{td}{td}[#newTextField]\(dataprovider, y)
Creates a new JSText field on the form.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariable]{td}{td}[#newVariable]\(name, type)
Creates a new form JSVariable \- based on the name of the variable object and the number type, uses the SolutionModel JSVariable constants.{td}{tr}{tbody}{tbody}{tr}{td}[JSVariable]{td}{td}[#newVariable]\(name, type, defaultValue)
Creates a new form JSVariable \- based on the name of the variable object , the  type  and it's default value , uses the SolutionModel JSVariable constants.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeBean]\(name)
Removes a JSBean that has the specified name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeButton]\(name)
Removes a JSButton that has the specified name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeComponent]\(name)
Removes a component (JSLabel, JSButton, JSField, JSPortal, JSBean, JSTabpanel) that has the given name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeField]\(name)
Removes a JSField that has the given name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeFooter]\()
Removes a JSFooter if it exists.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeHeader]\()
Removes a JSHeader if it exists.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeInsetList]\(name)
Removes inset list from the form.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeLabel]\(name)
Removes a JSLabel that has the given name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeMethod]\(name)
Removes a  form JSMethod \- based on the specified code.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeVariable]\(name)
Removes a form JSVariable \- based on the name of the variable object.{td}{tr}{tbody}{table}\\ 

{table:id=constant|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=dataSource|class=node}{tr:id=name}{td}h6.dataSource{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:dataSource_des|trigger=button|text=}{sub-section}{sub-section:dataSource_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:dataSource_snc|trigger=button|text=}{sub-section}{sub-section:dataSource_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:dataSource_prs|trigger=button|text=}{sub-section}{sub-section:dataSource_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:dataSource_ret|trigger=button|text=}{sub-section}{sub-section:dataSource_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:dataSource_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:dataSource_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:dataSource_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:dataSource_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:dataSource_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:dataSource_sam|trigger=none}{code:language=javascript}
var myForm = solutionModel.newForm('newForm', 'db:/a_server/a_table', 'aStyleName', false, 800, 600)
myForm.dataSource = 'db:/anotherServerName/anotherTableName'
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=name|class=node}{tr:id=name}{td}h6.name{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:name_des|trigger=button|text=}{sub-section}{sub-section:name_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:name_snc|trigger=button|text=}{sub-section}{sub-section:name_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:name_prs|trigger=button|text=}{sub-section}{sub-section:name_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:name_ret|trigger=button|text=}{sub-section}{sub-section:name_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:name_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:name_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:name_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:name_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:name_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:name_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('myForm',myDatasource,null,true,800,600);
var formName = form.name;
application.output(formName);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=navigator|class=node}{tr:id=name}{td}h6.navigator{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:navigator_des|trigger=button|text=}{sub-section}{sub-section:navigator_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:navigator_snc|trigger=button|text=}{sub-section}{sub-section:navigator_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:navigator_prs|trigger=button|text=}{sub-section}{sub-section:navigator_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:navigator_ret|trigger=button|text=}{sub-section}{sub-section:navigator_ret|trigger=none|class=sIndent}[Object]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:navigator_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:navigator_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:navigator_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:navigator_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:navigator_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:navigator_sam|trigger=none}{code:language=javascript}
var aForm = solutionModel.newForm('newForm1', myDatasource);
// you can also use SM_DEFAULTS.INGORE to just reuse the navigator that is already set.
// here we assign an other new form as the navigator.
var aNavigator = solutionModel.newForm('navForm', myDatasource);
aForm.navigator = aNavigator;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onHide|class=node}{tr:id=name}{td}h6.onHide{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:onHide_des|trigger=button|text=}{sub-section}{sub-section:onHide_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:onHide_snc|trigger=button|text=}{sub-section}{sub-section:onHide_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:onHide_prs|trigger=button|text=}{sub-section}{sub-section:onHide_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onHide_ret|trigger=button|text=}{sub-section}{sub-section:onHide_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onHide_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onHide_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onHide_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onHide_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onHide_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onHide_sam|trigger=none}{code:language=javascript}
form.onShow = form.newMethod('function onShow(firstShow, event) { application.output("onShow intercepted on " + event.getFormName() + ". first show? " + firstShow); return false; }');
form.onHide = form.newMethod('function onHide(event) { application.output("onHide blocked on " + event.getFormName()); return false; }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onLoad|class=node}{tr:id=name}{td}h6.onLoad{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:onLoad_des|trigger=button|text=}{sub-section}{sub-section:onLoad_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:onLoad_snc|trigger=button|text=}{sub-section}{sub-section:onLoad_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:onLoad_prs|trigger=button|text=}{sub-section}{sub-section:onLoad_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onLoad_ret|trigger=button|text=}{sub-section}{sub-section:onLoad_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onLoad_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onLoad_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onLoad_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onLoad_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onLoad_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onLoad_sam|trigger=none}{code:language=javascript}
form.onLoad = form.newMethod('function onLoad(event) { application.output("onLoad intercepted on " + event.getFormName()); }');
form.onUnLoad = form.newMethod('function onUnLoad(event) { application.output("onUnLoad intercepted on " + event.getFormName()); }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onRecordSelection|class=node}{tr:id=name}{td}h6.onRecordSelection{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:onRecordSelection_des|trigger=button|text=}{sub-section}{sub-section:onRecordSelection_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:onRecordSelection_snc|trigger=button|text=}{sub-section}{sub-section:onRecordSelection_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:onRecordSelection_prs|trigger=button|text=}{sub-section}{sub-section:onRecordSelection_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onRecordSelection_ret|trigger=button|text=}{sub-section}{sub-section:onRecordSelection_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onRecordSelection_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onRecordSelection_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onRecordSelection_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onRecordSelection_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onRecordSelection_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onRecordSelection_sam|trigger=none}{code:language=javascript}
form.onRecordEditStart = form.newMethod('function onRecordEditStart(event) { application.output("onRecordEditStart intercepted on " + event.getFormName()); }');
form.onRecordEditStop = form.newMethod('function onRecordEditStop(record, event) { application.output("onRecordEditStop intercepted on " + event.getFormName() + ". record is: " + record); }');
form.onRecordSelection = form.newMethod('function onRecordSelection(event) { application.output("onRecordSelection intercepted on " + event.getFormName()); }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onShow|class=node}{tr:id=name}{td}h6.onShow{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:onShow_des|trigger=button|text=}{sub-section}{sub-section:onShow_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:onShow_snc|trigger=button|text=}{sub-section}{sub-section:onShow_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:onShow_prs|trigger=button|text=}{sub-section}{sub-section:onShow_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onShow_ret|trigger=button|text=}{sub-section}{sub-section:onShow_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onShow_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onShow_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onShow_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onShow_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onShow_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:onShow_sam|trigger=none}{code:language=javascript}
form.onShow = form.newMethod('function onShow(firstShow, event) { application.output("onShow intercepted on " + event.getFormName() + ". first show? " + firstShow); return false; }');
form.onHide = form.newMethod('function onHide(event) { application.output("onHide blocked on " + event.getFormName()); return false; }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=serverName|class=node}{tr:id=name}{td}h6.serverName{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:serverName_des|trigger=button|text=}{sub-section}{sub-section:serverName_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:serverName_snc|trigger=button|text=}{sub-section}{sub-section:serverName_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:serverName_prs|trigger=button|text=}{sub-section}{sub-section:serverName_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:serverName_ret|trigger=button|text=}{sub-section}{sub-section:serverName_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:serverName_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:serverName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:serverName_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:serverName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:serverName_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:serverName_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('myForm',myDatasource,null,true,800,600);
form.serverName = 'anotherServerName';
var theServerName = form.serverName;
application.output(theServerName);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=tableName|class=node}{tr:id=name}{td}h6.tableName{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:tableName_des|trigger=button|text=}{sub-section}{sub-section:tableName_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:tableName_snc|trigger=button|text=}{sub-section}{sub-section:tableName_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:tableName_prs|trigger=button|text=}{sub-section}{sub-section:tableName_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:tableName_ret|trigger=button|text=}{sub-section}{sub-section:tableName_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:tableName_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:tableName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:tableName_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:tableName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:tableName_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:tableName_sam|trigger=none}{code:language=javascript}
var aForm = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
aForm.tableName = 'anotherTableOfMine'
if (forms['newForm1'].controller.find())
{
	columnTextDataProvider = '=aSearchedValue'
	columnNumberDataProvider = '>10';
	forms['newForm1'].controller.search()
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{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=getBean-String|class=node}{tr:id=name}{td}h6.getBean{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSBean]{span}{span:id=iets|style=float: left; font-weight: bold;}getBean{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getBean-String_des|trigger=button|text=}{sub-section}{sub-section:getBean-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:getBean-String_snc|trigger=button|text=}{sub-section}{sub-section:getBean-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getBean-String_prs|trigger=button|text=}{sub-section}{sub-section:getBean-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the bean
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getBean-String_ret|trigger=button|text=}{sub-section}{sub-section:getBean-String_ret|trigger=none|class=sIndent}[JSBean] -- a JSBean object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getBean-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getBean-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getBean-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getBean-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getBean-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getBean-String_sam|trigger=none}{code:language=javascript}
var btn = myForm.getBean("mybean");
application.output(mybean.className);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getButton-String|class=node}{tr:id=name}{td}h6.getButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSButton]{span}{span:id=iets|style=float: left; font-weight: bold;}getButton{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getButton-String_des|trigger=button|text=}{sub-section}{sub-section:getButton-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:getButton-String_snc|trigger=button|text=}{sub-section}{sub-section:getButton-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getButton-String_prs|trigger=button|text=}{sub-section}{sub-section:getButton-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the button
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getButton-String_ret|trigger=button|text=}{sub-section}{sub-section:getButton-String_ret|trigger=none|class=sIndent}[JSButton] -- a JSButton object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getButton-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getButton-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getButton-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getButton-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getButton-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getButton-String_sam|trigger=none}{code:language=javascript}
var btn = myForm.getButton("hello");
application.output(btn.text);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getButtons|class=node}{tr:id=name}{td}h6.getButtons{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSButton]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getButtons{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getButtons_des|trigger=button|text=}{sub-section}{sub-section:getButtons_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:getButtons_snc|trigger=button|text=}{sub-section}{sub-section:getButtons_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:getButtons_prs|trigger=button|text=}{sub-section}{sub-section:getButtons_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getButtons_ret|trigger=button|text=}{sub-section}{sub-section:getButtons_ret|trigger=none|class=sIndent}[JSButton]\[] -- the list of all JSbuttons on this forms{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getButtons_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getButtons_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getButtons_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getButtons_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getButtons_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getButtons_sam|trigger=none}{code:language=javascript}
var buttons = myForm.getButtons();
for (var b in buttons)
{
	if (buttons[b].name != null) 
		application.output(buttons[b].name);
	else
		application.output(buttons[b].text + " has no name ");
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getComponent-String|class=node}{tr:id=name}{td}h6.getComponent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSComponent]{span}{span:id=iets|style=float: left; font-weight: bold;}getComponent{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getComponent-String_des|trigger=button|text=}{sub-section}{sub-section:getComponent-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:getComponent-String_snc|trigger=button|text=}{sub-section}{sub-section:getComponent-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getComponent-String_prs|trigger=button|text=}{sub-section}{sub-section:getComponent-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the component
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getComponent-String_ret|trigger=button|text=}{sub-section}{sub-section:getComponent-String_ret|trigger=none|class=sIndent}[JSComponent] -- a JSComponent object (might be a JSField, JSLabel, JSButton, JSPortal, JSBean or JSTabPanel){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getComponent-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getComponent-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getComponent-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getComponent-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getComponent-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getComponent-String_sam|trigger=none}{code:language=javascript}
var frm = solutionModel.getForm("myForm");
var cmp = frm.getComponent("componentName");
application.output("Component type and name: " + cmp);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getComponents|class=node}{tr:id=name}{td}h6.getComponents{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSComponent]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getComponents{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getComponents_des|trigger=button|text=}{sub-section}{sub-section:getComponents_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:getComponents_snc|trigger=button|text=}{sub-section}{sub-section:getComponents_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:getComponents_prs|trigger=button|text=}{sub-section}{sub-section:getComponents_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getComponents_ret|trigger=button|text=}{sub-section}{sub-section:getComponents_ret|trigger=none|class=sIndent}[JSComponent]\[] -- an array of all the JSComponents on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getComponents_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getComponents_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getComponents_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getComponents_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getComponents_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getComponents_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("myForm");
var components = form.getComponents();
for (var i in components)
	application.output("Component type and name: " + components[i]);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getField-String|class=node}{tr:id=name}{td}h6.getField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}getField{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getField-String_des|trigger=button|text=}{sub-section}{sub-section:getField-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:getField-String_snc|trigger=button|text=}{sub-section}{sub-section:getField-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getField-String_prs|trigger=button|text=}{sub-section}{sub-section:getField-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the field
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getField-String_ret|trigger=button|text=}{sub-section}{sub-section:getField-String_ret|trigger=none|class=sIndent}[JSField] -- a JSField object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getField-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getField-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getField-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getField-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getField-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getField-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("myForm");
var field = form.getField("myField");
application.output(field.dataProviderID);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getFields|class=node}{tr:id=name}{td}h6.getFields{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getFields{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getFields_des|trigger=button|text=}{sub-section}{sub-section:getFields_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:getFields_snc|trigger=button|text=}{sub-section}{sub-section:getFields_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:getFields_prs|trigger=button|text=}{sub-section}{sub-section:getFields_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getFields_ret|trigger=button|text=}{sub-section}{sub-section:getFields_ret|trigger=none|class=sIndent}[JSField]\[] -- all JSField objects of this form{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getFields_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getFields_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getFields_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getFields_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getFields_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getFields_sam|trigger=none}{code:language=javascript}
var frm = solutionModel.getForm("myForm");
var fields = frm.getFields();
for (var f in fields)
{
	var fname = fields[f].name;
	if (fname != null)
		application.output(fname);
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getFooter|class=node}{tr:id=name}{td}h6.getFooter{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSFooter]{span}{span:id=iets|style=float: left; font-weight: bold;}getFooter{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getFooter_des|trigger=button|text=}{sub-section}{sub-section:getFooter_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:getFooter_snc|trigger=button|text=}{sub-section}{sub-section:getFooter_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:getFooter_prs|trigger=button|text=}{sub-section}{sub-section:getFooter_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getFooter_ret|trigger=button|text=}{sub-section}{sub-section:getFooter_ret|trigger=none|class=sIndent}[JSFooter] -- A JSFooter or null when not found.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getFooter_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getFooter_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getFooter_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getFooter_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getFooter_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getFooter_sam|trigger=none}{code:language=javascript}
var footer = form.getFooter();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getHeader|class=node}{tr:id=name}{td}h6.getHeader{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSHeader]{span}{span:id=iets|style=float: left; font-weight: bold;}getHeader{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getHeader_des|trigger=button|text=}{sub-section}{sub-section:getHeader_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:getHeader_snc|trigger=button|text=}{sub-section}{sub-section:getHeader_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:getHeader_prs|trigger=button|text=}{sub-section}{sub-section:getHeader_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getHeader_ret|trigger=button|text=}{sub-section}{sub-section:getHeader_ret|trigger=none|class=sIndent}[JSHeader] -- A JSHeader or null when not found.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getHeader_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getHeader_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getHeader_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getHeader_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getHeader_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getHeader_sam|trigger=none}{code:language=javascript}
var header = form.getHeader();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getInsetList-String|class=node}{tr:id=name}{td}h6.getInsetList{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSInsetList]{span}{span:id=iets|style=float: left; font-weight: bold;}getInsetList{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getInsetList-String_des|trigger=button|text=}{sub-section}{sub-section:getInsetList-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:getInsetList-String_snc|trigger=button|text=}{sub-section}{sub-section:getInsetList-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getInsetList-String_prs|trigger=button|text=}{sub-section}{sub-section:getInsetList-String_prs|trigger=none|class=sIndent}\{[String]} name -- the inset list's name.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getInsetList-String_ret|trigger=button|text=}{sub-section}{sub-section:getInsetList-String_ret|trigger=none|class=sIndent}[JSInsetList] -- the existing inset list, or null if it does not exist.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getInsetList-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getInsetList-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getInsetList-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getInsetList-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getInsetList-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getInsetList-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm("myform");
var insetList = form.getInsetList('mylist1');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getInsetLists|class=node}{tr:id=name}{td}h6.getInsetLists{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSInsetList]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getInsetLists{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getInsetLists_des|trigger=button|text=}{sub-section}{sub-section:getInsetLists_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:getInsetLists_snc|trigger=button|text=}{sub-section}{sub-section:getInsetLists_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:getInsetLists_prs|trigger=button|text=}{sub-section}{sub-section:getInsetLists_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getInsetLists_ret|trigger=button|text=}{sub-section}{sub-section:getInsetLists_ret|trigger=none|class=sIndent}[JSInsetList]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getInsetLists_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getInsetLists_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getInsetLists_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getInsetLists_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getInsetLists_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getInsetLists_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm('test');
var insetLists = form.getInsetLists();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLabel-String|class=node}{tr:id=name}{td}h6.getLabel{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSLabel]{span}{span:id=iets|style=float: left; font-weight: bold;}getLabel{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getLabel-String_des|trigger=button|text=}{sub-section}{sub-section:getLabel-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:getLabel-String_snc|trigger=button|text=}{sub-section}{sub-section:getLabel-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getLabel-String_prs|trigger=button|text=}{sub-section}{sub-section:getLabel-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the label
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getLabel-String_ret|trigger=button|text=}{sub-section}{sub-section:getLabel-String_ret|trigger=none|class=sIndent}[JSLabel] -- a JSLabel object (or null if the label with the specified name does not exist){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getLabel-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getLabel-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getLabel-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getLabel-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getLabel-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getLabel-String_sam|trigger=none}{code:language=javascript}
var frm = solutionModel.getForm("myForm");
var label = frm.getLabel("myLabel");
application.output(label.text);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLabels|class=node}{tr:id=name}{td}h6.getLabels{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSLabel]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getLabels{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getLabels_des|trigger=button|text=}{sub-section}{sub-section:getLabels_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:getLabels_snc|trigger=button|text=}{sub-section}{sub-section:getLabels_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:getLabels_prs|trigger=button|text=}{sub-section}{sub-section:getLabels_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getLabels_ret|trigger=button|text=}{sub-section}{sub-section:getLabels_ret|trigger=none|class=sIndent}[JSLabel]\[] -- all JSLabels on this form{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getLabels_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getLabels_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getLabels_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getLabels_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getLabels_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getLabels_sam|trigger=none}{code:language=javascript}
var frm = solutionModel.getForm("myForm");
var labels = frm.getLabels();
for (var i in labels)
{
	var lname = labels[i].name;
	if (lname != null)
		application.output(lname);
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMethod-String|class=node}{tr:id=name}{td}h6.getMethod{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMethod]{span}{span:id=iets|style=float: left; font-weight: bold;}getMethod{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getMethod-String_des|trigger=button|text=}{sub-section}{sub-section:getMethod-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:getMethod-String_snc|trigger=button|text=}{sub-section}{sub-section:getMethod-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getMethod-String_prs|trigger=button|text=}{sub-section}{sub-section:getMethod-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the method
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getMethod-String_ret|trigger=button|text=}{sub-section}{sub-section:getMethod-String_ret|trigger=none|class=sIndent}[JSMethod] -- a JSMethod object (or null if the method with the specified name does not exist){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getMethod-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getMethod-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getMethod-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getMethod-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getMethod-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getMethod-String_sam|trigger=none}{code:language=javascript}
var frm = solutionModel.getForm("myForm");
var method = frm.getMethod("myMethod");
application.output(method.code);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMethods|class=node}{tr:id=name}{td}h6.getMethods{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMethod]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getMethods{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getMethods_des|trigger=button|text=}{sub-section}{sub-section:getMethods_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:getMethods_snc|trigger=button|text=}{sub-section}{sub-section:getMethods_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:getMethods_prs|trigger=button|text=}{sub-section}{sub-section:getMethods_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getMethods_ret|trigger=button|text=}{sub-section}{sub-section:getMethods_ret|trigger=none|class=sIndent}[JSMethod]\[] -- all form methods for the form{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getMethods_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getMethods_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getMethods_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getMethods_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getMethods_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getMethods_sam|trigger=none}{code:language=javascript}
var frm = solutionModel.getForm("myForm");
var methods = frm.getMethods();
for (var m in methods)
	application.output(methods[m].getName());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getPart-Number|class=node}{tr:id=name}{td}h6.getPart{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSPart]{span}{span:id=iets|style=float: left; font-weight: bold;}getPart{span}{span:id=iets|style=float: left;}\(type){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getPart-Number_des|trigger=button|text=}{sub-section}{sub-section:getPart-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:getPart-Number_snc|trigger=button|text=}{sub-section}{sub-section:getPart-Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getPart-Number_prs|trigger=button|text=}{sub-section}{sub-section:getPart-Number_prs|trigger=none|class=sIndent}\{[Number]} type -- The type of the part to retrieve.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getPart-Number_ret|trigger=button|text=}{sub-section}{sub-section:getPart-Number_ret|trigger=none|class=sIndent}[JSPart] -- A JSPart instance representing the retrieved form part.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getPart-Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getPart-Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getPart-Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getPart-Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getPart-Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getPart-Number_sam|trigger=none}{code:language=javascript}
form.getPart(JSPart.HEADER).background = 'red';
form.getPart(JSPart.LEADING_SUBSUMMARY, 160).background = 'red';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getVariable-String|class=node}{tr:id=name}{td}h6.getVariable{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSVariable]{span}{span:id=iets|style=float: left; font-weight: bold;}getVariable{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getVariable-String_des|trigger=button|text=}{sub-section}{sub-section:getVariable-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:getVariable-String_snc|trigger=button|text=}{sub-section}{sub-section:getVariable-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getVariable-String_prs|trigger=button|text=}{sub-section}{sub-section:getVariable-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the variable
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getVariable-String_ret|trigger=button|text=}{sub-section}{sub-section:getVariable-String_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:getVariable-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getVariable-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getVariable-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getVariable-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getVariable-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getVariable-String_sam|trigger=none}{code:language=javascript}
var frm = solutionModel.getForm("myForm");
	var fvariable = frm.getVariable("myVarName");
	application.output(fvariable.name + " has the default value of " + fvariable.defaultValue);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getVariables|class=node}{tr:id=name}{td}h6.getVariables{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSVariable]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getVariables{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getVariables_des|trigger=button|text=}{sub-section}{sub-section:getVariables_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:getVariables_snc|trigger=button|text=}{sub-section}{sub-section:getVariables_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:getVariables_prs|trigger=button|text=}{sub-section}{sub-section:getVariables_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getVariables_ret|trigger=button|text=}{sub-section}{sub-section:getVariables_ret|trigger=none|class=sIndent}[JSVariable]\[] -- an array of all variables on this form{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getVariables_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getVariables_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getVariables_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getVariables_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getVariables_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getVariables_sam|trigger=none}{code:language=javascript}
var frm = solutionModel.getForm("myForm");
var variables = frm.getVariables();
for (var i in variables)
	application.output(variables[i].name);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newBean-String_Number|class=node}{tr:id=name}{td}h6.newBean{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSBean]{span}{span:id=iets|style=float: left; font-weight: bold;}newBean{span}{span:id=iets|style=float: left;}\(name, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newBean-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newBean-String_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:newBean-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newBean-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newBean-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newBean-String_Number_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the JSBean object
\{[Number]} y -- the vertical "y" position of the JSBean object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newBean-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newBean-String_Number_ret|trigger=none|class=sIndent}[JSBean] -- a JSBean object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newBean-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newBean-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newBean-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newBean-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newBean-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newBean-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', 'db:/server1/table1');
var bean = form.newBean('bean', 1);
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newButton-String_Number_JSMethod|class=node}{tr:id=name}{td}h6.newButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSButton]{span}{span:id=iets|style=float: left; font-weight: bold;}newButton{span}{span:id=iets|style=float: left;}\(txt, y, jsmethod){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newButton-String_Number_JSMethod_des|trigger=button|text=}{sub-section}{sub-section:newButton-String_Number_JSMethod_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:newButton-String_Number_JSMethod_snc|trigger=button|text=}{sub-section}{sub-section:newButton-String_Number_JSMethod_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newButton-String_Number_JSMethod_prs|trigger=button|text=}{sub-section}{sub-section:newButton-String_Number_JSMethod_prs|trigger=none|class=sIndent}\{[String]} txt -- the text on the button
\{[Number]} y -- the y coordinate of the button location on the form, defines the order of elements on the form
\{[JSMethod]} jsmethod -- the method assigned to handle an onAction event
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newButton-String_Number_JSMethod_ret|trigger=button|text=}{sub-section}{sub-section:newButton-String_Number_JSMethod_ret|trigger=none|class=sIndent}[JSButton] -- a new JSButton object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newButton:newButton-String_Number_JSMethod_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newButton-String_Number_JSMethod_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newButton-String_Number_JSMethod_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newButton-String_Number_JSMethod_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newButton-String_Number_JSMethod_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newButton-String_Number_JSMethod_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', myDatasource);
var method = form.newMethod('function onAction(event) { application.output("onAction intercepted on " + event.getFormName()); }');
var button = form.newButton('myButton', 1, method);
application.output("The new button: " + button.name + " has the following onAction event handling method assigned " + button.onAction.getName());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCalendar-JSVariable_Number|class=node}{tr:id=name}{td}h6.newCalendar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSCalendar]{span}{span:id=iets|style=float: left; font-weight: bold;}newCalendar{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newCalendar-JSVariable_Number_des|trigger=button|text=}{sub-section}{sub-section:newCalendar-JSVariable_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:newCalendar-JSVariable_Number_snc|trigger=button|text=}{sub-section}{sub-section:newCalendar-JSVariable_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newCalendar-JSVariable_Number_prs|trigger=button|text=}{sub-section}{sub-section:newCalendar-JSVariable_Number_prs|trigger=none|class=sIndent}\{[JSVariable]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newCalendar-JSVariable_Number_ret|trigger=button|text=}{sub-section}{sub-section:newCalendar-JSVariable_Number_ret|trigger=none|class=sIndent}[JSCalendar] -- a new JSCalendar field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newCalendar-JSVariable_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCalendar-JSVariable_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newCalendar-JSVariable_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCalendar-JSVariable_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newCalendar-JSVariable_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCalendar-JSVariable_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal', JSVariable.DATETIME);
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar', JSVariable.DATETIME);
var field = form.newCalendar(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCalendar-String_Number|class=node}{tr:id=name}{td}h6.newCalendar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSCalendar]{span}{span:id=iets|style=float: left; font-weight: bold;}newCalendar{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newCalendar-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newCalendar-String_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:newCalendar-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newCalendar-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newCalendar-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newCalendar-String_Number_prs|trigger=none|class=sIndent}\{[String]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newCalendar-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newCalendar-String_Number_ret|trigger=none|class=sIndent}[JSCalendar] -- a new JSCalendar field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newCalendar-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCalendar-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newCalendar-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCalendar-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newCalendar-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCalendar-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal', JSVariable.DATETIME);
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar', JSVariable.DATETIME);
var field = form.newCalendar(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCheck-JSVariable_Number|class=node}{tr:id=name}{td}h6.newCheck{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSChecks]{span}{span:id=iets|style=float: left; font-weight: bold;}newCheck{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newCheck-JSVariable_Number_des|trigger=button|text=}{sub-section}{sub-section:newCheck-JSVariable_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:newCheck-JSVariable_Number_snc|trigger=button|text=}{sub-section}{sub-section:newCheck-JSVariable_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newCheck-JSVariable_Number_prs|trigger=button|text=}{sub-section}{sub-section:newCheck-JSVariable_Number_prs|trigger=none|class=sIndent}\{[JSVariable]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newCheck-JSVariable_Number_ret|trigger=button|text=}{sub-section}{sub-section:newCheck-JSVariable_Number_ret|trigger=none|class=sIndent}[JSChecks] -- a new JSChecks field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newCheck-JSVariable_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCheck-JSVariable_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newCheck-JSVariable_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCheck-JSVariable_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newCheck-JSVariable_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCheck-JSVariable_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.INTEGER);
//x.defaultValue = "'1'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.INTEGER);
//x.defaultValue = "'1'";
var field = form.newCheck(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCheck-String_Number|class=node}{tr:id=name}{td}h6.newCheck{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSChecks]{span}{span:id=iets|style=float: left; font-weight: bold;}newCheck{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newCheck-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newCheck-String_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:newCheck-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newCheck-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newCheck-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newCheck-String_Number_prs|trigger=none|class=sIndent}\{[String]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newCheck-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newCheck-String_Number_ret|trigger=none|class=sIndent}[JSChecks] -- a new JSChecks field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newCheck-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCheck-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newCheck-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCheck-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newCheck-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCheck-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.INTEGER);
//x.defaultValue = "'1'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.INTEGER);
//x.defaultValue = "'1'";
var field = form.newCheck(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCombobox-JSVariable_Number|class=node}{tr:id=name}{td}h6.newCombobox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSCombobox]{span}{span:id=iets|style=float: left; font-weight: bold;}newCombobox{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newCombobox-JSVariable_Number_des|trigger=button|text=}{sub-section}{sub-section:newCombobox-JSVariable_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:newCombobox-JSVariable_Number_snc|trigger=button|text=}{sub-section}{sub-section:newCombobox-JSVariable_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newCombobox-JSVariable_Number_prs|trigger=button|text=}{sub-section}{sub-section:newCombobox-JSVariable_Number_prs|trigger=none|class=sIndent}\{[JSVariable]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newCombobox-JSVariable_Number_ret|trigger=button|text=}{sub-section}{sub-section:newCombobox-JSVariable_Number_ret|trigger=none|class=sIndent}[JSCombobox] -- a new JSCombobox field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newCombobox-JSVariable_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCombobox-JSVariable_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newCombobox-JSVariable_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCombobox-JSVariable_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newCombobox-JSVariable_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCombobox-JSVariable_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//x.defaultValue = "'Text from a global variable'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
//x.defaultValue = "'Text from a form variable'";
var field = form.newCombobox(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCombobox-String_Number|class=node}{tr:id=name}{td}h6.newCombobox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSCombobox]{span}{span:id=iets|style=float: left; font-weight: bold;}newCombobox{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newCombobox-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newCombobox-String_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:newCombobox-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newCombobox-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newCombobox-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newCombobox-String_Number_prs|trigger=none|class=sIndent}\{[String]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newCombobox-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newCombobox-String_Number_ret|trigger=none|class=sIndent}[JSCombobox] -- a new JSCombobox field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newCombobox-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCombobox-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newCombobox-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCombobox-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newCombobox-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newCombobox-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//x.defaultValue = "'Text from a global variable'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
//x.defaultValue = "'Text from a form variable'";
var field = form.newCombobox(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newField-JSVariable_Number_Number|class=node}{tr:id=name}{td}h6.newField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newField{span}{span:id=iets|style=float: left;}\(dataprovider, type, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newField-JSVariable_Number_Number_des|trigger=button|text=}{sub-section}{sub-section:newField-JSVariable_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:newField-JSVariable_Number_Number_snc|trigger=button|text=}{sub-section}{sub-section:newField-JSVariable_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newField-JSVariable_Number_Number_prs|trigger=button|text=}{sub-section}{sub-section:newField-JSVariable_Number_Number_prs|trigger=none|class=sIndent}\{[JSVariable]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} type -- the display type of the JSField object (see the Solution Model \-> JSField node for display types)
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newField-JSVariable_Number_Number_ret|trigger=button|text=}{sub-section}{sub-section:newField-JSVariable_Number_Number_ret|trigger=none|class=sIndent}[JSField]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newField-JSVariable_Number_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newField-JSVariable_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newField-JSVariable_Number_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newField-JSVariable_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newField-JSVariable_Number_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newField-JSVariable_Number_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var variable = form.newVariable('myVar', JSVariable.TEXT);
variable.defaultValue = "'This is a default value (with triple quotes)!'";
var field = form.newField(variable, JSField.TEXT_FIELD, 1);
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newField-String_Number_Number|class=node}{tr:id=name}{td}h6.newField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newField{span}{span:id=iets|style=float: left;}\(dataprovider, type, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newField-String_Number_Number_des|trigger=button|text=}{sub-section}{sub-section:newField-String_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:newField-String_Number_Number_snc|trigger=button|text=}{sub-section}{sub-section:newField-String_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newField-String_Number_Number_prs|trigger=button|text=}{sub-section}{sub-section:newField-String_Number_Number_prs|trigger=none|class=sIndent}\{[String]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} type -- the display type of the JSField object (see the Solution Model \-> JSField node for display types)
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newField-String_Number_Number_ret|trigger=button|text=}{sub-section}{sub-section:newField-String_Number_Number_ret|trigger=none|class=sIndent}[JSField]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newField-String_Number_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newField-String_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newField-String_Number_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newField-String_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newField-String_Number_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newField-String_Number_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var variable = form.newVariable('myVar', JSVariable.TEXT);
variable.defaultValue = "'This is a default value (with triple quotes)!'";
var field = form.newField(variable, JSField.TEXT_FIELD, 1);
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newFooter|class=node}{tr:id=name}{td}h6.newFooter{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSFooter]{span}{span:id=iets|style=float: left; font-weight: bold;}newFooter{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newFooter_des|trigger=button|text=}{sub-section}{sub-section:newFooter_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:newFooter_snc|trigger=button|text=}{sub-section}{sub-section:newFooter_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:newFooter_prs|trigger=button|text=}{sub-section}{sub-section:newFooter_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:newFooter_ret|trigger=button|text=}{sub-section}{sub-section:newFooter_ret|trigger=none|class=sIndent}[JSFooter] -- A JSFooter instance corresponding to the newly created Footer form part.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newFooter_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newFooter_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newFooter_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newFooter_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newFooter_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newFooter_sam|trigger=none}{code:language=javascript}
var footer = form.newFooter();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newHeader|class=node}{tr:id=name}{td}h6.newHeader{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSHeader]{span}{span:id=iets|style=float: left; font-weight: bold;}newHeader{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newHeader_des|trigger=button|text=}{sub-section}{sub-section:newHeader_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:newHeader_snc|trigger=button|text=}{sub-section}{sub-section:newHeader_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:newHeader_prs|trigger=button|text=}{sub-section}{sub-section:newHeader_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:newHeader_ret|trigger=button|text=}{sub-section}{sub-section:newHeader_ret|trigger=none|class=sIndent}[JSHeader] -- A JSHeader instance corresponding to the newly created Header form part.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newHeader_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newHeader_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newHeader_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newHeader_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newHeader_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newHeader_sam|trigger=none}{code:language=javascript}
var header = form.newHeader();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newInsetList-Number_String_String_String|class=node}{tr:id=name}{td}h6.newInsetList{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSInsetList]{span}{span:id=iets|style=float: left; font-weight: bold;}newInsetList{span}{span:id=iets|style=float: left;}\(yLocation, relationName, headerText, textDataProviderID){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newInsetList-Number_String_String_String_des|trigger=button|text=}{sub-section}{sub-section:newInsetList-Number_String_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:newInsetList-Number_String_String_String_snc|trigger=button|text=}{sub-section}{sub-section:newInsetList-Number_String_String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newInsetList-Number_String_String_String_prs|trigger=button|text=}{sub-section}{sub-section:newInsetList-Number_String_String_String_prs|trigger=none|class=sIndent}\{[Number]} yLocation -- the vertical location of the inset list in the form's components list.
\{[String]} relationName -- the relation used to show data, just like it would happen in a related tab\-panel.
\{[String]} headerText -- can be null; it's a convenience argument for setting the title (header text) for the inset list.
\{[String]} textDataProviderID -- can be null; it's a convenience argument for setting the 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:newInsetList-Number_String_String_String_ret|trigger=button|text=}{sub-section}{sub-section:newInsetList-Number_String_String_String_ret|trigger=none|class=sIndent}[JSInsetList] -- the newly created inset list.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newInsetList-Number_String_String_String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newInsetList-Number_String_String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newInsetList-Number_String_String_String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newInsetList-Number_String_String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newInsetList-Number_String_String_String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newInsetList-Number_String_String_String_sam|trigger=none}{code:language=javascript}
var f = solutionModel.newForm("created_by_sm_1","db:/udm/contacts");
// create an inset list
var insetList = f.newInsetList(8,"accountmanager_to_companies","Companies","company_name");
insetList.subtextDataProviderID = "company_description";
insetList.onAction = f.newMethod("function buttonPressed() { plugins.dialogs.showWarningDialog('Title', 'inset list clicked','OK'); }");
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newLabel-String_Number|class=node}{tr:id=name}{td}h6.newLabel{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSLabel]{span}{span:id=iets|style=float: left; font-weight: bold;}newLabel{span}{span:id=iets|style=float: left;}\(txt, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newLabel-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newLabel-String_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:newLabel-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newLabel-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newLabel-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newLabel-String_Number_prs|trigger=none|class=sIndent}\{[String]} txt -- the specified text of the label object
\{[Number]} y -- the vertical "y" position of the label, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newLabel-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newLabel-String_Number_ret|trigger=none|class=sIndent}[JSLabel] -- a JSLabel object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newLabel-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newLabel-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newLabel-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newLabel-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newLabel-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newLabel-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', myDatasource);
var label = form.newLabel('The text on the label', 1);
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newMethod-String|class=node}{tr:id=name}{td}h6.newMethod{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSMethod]{span}{span:id=iets|style=float: left; font-weight: bold;}newMethod{span}{span:id=iets|style=float: left;}\(code){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newMethod-String_des|trigger=button|text=}{sub-section}{sub-section:newMethod-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:newMethod-String_snc|trigger=button|text=}{sub-section}{sub-section:newMethod-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newMethod-String_prs|trigger=button|text=}{sub-section}{sub-section:newMethod-String_prs|trigger=none|class=sIndent}\{[String]} code -- the specified code for the new method
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newMethod-String_ret|trigger=button|text=}{sub-section}{sub-section:newMethod-String_ret|trigger=none|class=sIndent}[JSMethod] -- a new JSMethod object for this form{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newMethod-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newMethod-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newMethod-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newMethod-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newMethodnewMethod-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newMethod-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var method = form.newMethod('function aMethod(event){application.output("Hello world!");}');
var button = myListViewForm.newButton('Show message!',50,50,100,30,method);
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newPassword-JSVariable_Number|class=node}{tr:id=name}{td}h6.newPassword{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSPassword]{span}{span:id=iets|style=float: left; font-weight: bold;}newPassword{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newPassword-JSVariable_Number_des|trigger=button|text=}{sub-section}{sub-section:newPassword-JSVariable_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:newPassword-JSVariable_Number_snc|trigger=button|text=}{sub-section}{sub-section:newPassword-JSVariable_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newPassword-JSVariable_Number_prs|trigger=button|text=}{sub-section}{sub-section:newPassword-JSVariable_Number_prs|trigger=none|class=sIndent}\{[JSVariable]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newPassword-JSVariable_Number_ret|trigger=button|text=}{sub-section}{sub-section:newPassword-JSVariable_Number_ret|trigger=none|class=sIndent}[JSPassword] -- a new JSPassword field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newPassword-JSVariable_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newPassword-JSVariable_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newPassword-JSVariable_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newPassword-JSVariable_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newPassword-JSVariable_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newPassword-JSVariable_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
var field = form.newPassword(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newPassword-String_Number|class=node}{tr:id=name}{td}h6.newPassword{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSPassword]{span}{span:id=iets|style=float: left; font-weight: bold;}newPassword{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newPassword-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newPassword-String_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:newPassword-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newPassword-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newPassword-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newPassword-String_Number_prs|trigger=none|class=sIndent}\{[String]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newPassword-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newPassword-String_Number_ret|trigger=none|class=sIndent}[JSPassword] -- a new JSPassword field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newPassword-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newPassword-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newPassword-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newPassword-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newPassword-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newPassword-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
var field = form.newPassword(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newRadios-JSVariable_Number|class=node}{tr:id=name}{td}h6.newRadios{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSRadios]{span}{span:id=iets|style=float: left; font-weight: bold;}newRadios{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newRadios-JSVariable_Number_des|trigger=button|text=}{sub-section}{sub-section:newRadios-JSVariable_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:newRadios-JSVariable_Number_snc|trigger=button|text=}{sub-section}{sub-section:newRadios-JSVariable_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newRadios-JSVariable_Number_prs|trigger=button|text=}{sub-section}{sub-section:newRadios-JSVariable_Number_prs|trigger=none|class=sIndent}\{[JSVariable]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newRadios-JSVariable_Number_ret|trigger=button|text=}{sub-section}{sub-section:newRadios-JSVariable_Number_ret|trigger=none|class=sIndent}[JSRadios] -- a new JSRadios field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newRadios-JSVariable_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newRadios-JSVariable_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newRadios-JSVariable_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newRadios-JSVariable_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newRadios-JSVariable_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newRadios-JSVariable_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//x.defaultValue = "'Text from a global variable'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
//x.defaultValue = "'Text from a form variable'";
var field = form.newRadios(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newRadios-String_Number|class=node}{tr:id=name}{td}h6.newRadios{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSRadios]{span}{span:id=iets|style=float: left; font-weight: bold;}newRadios{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newRadios-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newRadios-String_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:newRadios-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newRadios-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newRadios-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newRadios-String_Number_prs|trigger=none|class=sIndent}\{[String]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newRadios-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newRadios-String_Number_ret|trigger=none|class=sIndent}[JSRadios] -- a new JSRadios field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newRadios-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newRadios-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newRadios-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newRadios-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newRadios-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newRadios-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//x.defaultValue = "'Text from a global variable'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
//x.defaultValue = "'Text from a form variable'";
var field = form.newRadios(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTextArea-JSVariable_Number|class=node}{tr:id=name}{td}h6.newTextArea{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSTextArea]{span}{span:id=iets|style=float: left; font-weight: bold;}newTextArea{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newTextArea-JSVariable_Number_des|trigger=button|text=}{sub-section}{sub-section:newTextArea-JSVariable_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:newTextArea-JSVariable_Number_snc|trigger=button|text=}{sub-section}{sub-section:newTextArea-JSVariable_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newTextArea-JSVariable_Number_prs|trigger=button|text=}{sub-section}{sub-section:newTextArea-JSVariable_Number_prs|trigger=none|class=sIndent}\{[JSVariable]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newTextArea-JSVariable_Number_ret|trigger=button|text=}{sub-section}{sub-section:newTextArea-JSVariable_Number_ret|trigger=none|class=sIndent}[JSTextArea] -- a new JSTextArea field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newTextArea-JSVariable_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextArea-JSVariable_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newTextArea-JSVariable_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextArea-JSVariable_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newTextArea-JSVariable_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextArea-JSVariable_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//x.defaultValue = "'Text from a global variable'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
//x.defaultValue = "'Text from a form variable'";
var field = form.newTextArea(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTextArea-String_Number|class=node}{tr:id=name}{td}h6.newTextArea{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSTextArea]{span}{span:id=iets|style=float: left; font-weight: bold;}newTextArea{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newTextArea-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newTextArea-String_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:newTextArea-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newTextArea-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newTextArea-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newTextArea-String_Number_prs|trigger=none|class=sIndent}\{[String]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newTextArea-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newTextArea-String_Number_ret|trigger=none|class=sIndent}[JSTextArea] -- a new JSTextArea field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newTextArea-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextArea-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newTextArea-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextArea-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newTextArea-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextArea-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//x.defaultValue = "'Text from a global variable'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
//x.defaultValue = "'Text from a form variable'";
var field = form.newTextArea(x,1);
//or a column data provider as the dataprovider
//field.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTextField-JSVariable_Number|class=node}{tr:id=name}{td}h6.newTextField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSText]{span}{span:id=iets|style=float: left; font-weight: bold;}newTextField{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newTextField-JSVariable_Number_des|trigger=button|text=}{sub-section}{sub-section:newTextField-JSVariable_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:newTextField-JSVariable_Number_snc|trigger=button|text=}{sub-section}{sub-section:newTextField-JSVariable_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newTextField-JSVariable_Number_prs|trigger=button|text=}{sub-section}{sub-section:newTextField-JSVariable_Number_prs|trigger=none|class=sIndent}\{[JSVariable]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newTextField-JSVariable_Number_ret|trigger=button|text=}{sub-section}{sub-section:newTextField-JSVariable_Number_ret|trigger=none|class=sIndent}[JSText] -- a new JSText field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newTextField-JSVariable_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextField-JSVariable_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newTextField-JSVariable_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextField-JSVariable_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newTextField-JSVariable_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextField-JSVariable_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the Text Field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//x.defaultValue = "'Text from a global variable'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
//x.defaultValue = "'Text from a form variable'";
var textField = form.newTextField(x,1);
//or a column data provider as the dataprovider
//textField.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTextField-String_Number|class=node}{tr:id=name}{td}h6.newTextField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSText]{span}{span:id=iets|style=float: left; font-weight: bold;}newTextField{span}{span:id=iets|style=float: left;}\(dataprovider, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newTextField-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newTextField-String_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:newTextField-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newTextField-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newTextField-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newTextField-String_Number_prs|trigger=none|class=sIndent}\{[String]} dataprovider -- the specified dataprovider name/JSVariable of the JSField object
\{[Number]} y -- the vertical "y" position of the JSField object, defines the order of elements on the form
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newTextField-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newTextField-String_Number_ret|trigger=none|class=sIndent}[JSText] -- a new JSText field{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newTextField-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextField-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newTextField-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextField-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newTextField-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newTextField-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1',myDatasource); 
//choose the dataprovider or JSVariable you want for the Text Field
var x = null;
//global JSVariable as the dataprovider 
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//x.defaultValue = "'Text from a global variable'";
//or a form JSVariable as the dataprovider 
//x = form.newVariable('myFormVar',JSVariable.TEXT);
//x.defaultValue = "'Text from a form variable'";
var textField = form.newTextField(x,1);
//or a column data provider as the dataprovider
//textField.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newVariable-String_Number|class=node}{tr:id=name}{td}h6.newVariable{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSVariable]{span}{span:id=iets|style=float: left; font-weight: bold;}newVariable{span}{span:id=iets|style=float: left;}\(name, type){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newVariable-String_Number_des|trigger=button|text=}{sub-section}{sub-section:newVariable-String_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:newVariable-String_Number_snc|trigger=button|text=}{sub-section}{sub-section:newVariable-String_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newVariable-String_Number_prs|trigger=button|text=}{sub-section}{sub-section:newVariable-String_Number_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the variable
\{[Number]} type -- the specified type of the variable (see Solution Model \-> JSVariable node constants)
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newVariable-String_Number_ret|trigger=button|text=}{sub-section}{sub-section:newVariable-String_Number_ret|trigger=none|class=sIndent}[JSVariable] -- a JSVariable object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newVariable-String_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newVariable-String_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newVariable-String_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newVariable-String_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newVariable-String_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newVariable-String_Number_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var variable = form.newVariable('myVar', JSVariable.TEXT , "'This is a default value (with triple quotes)!'");
//or variable = form.newVariable('myVar', JSVariable.TEXT)
//variable.defaultValue = "'This is a default value (with triple quotes)!'" // setting the default value after the variable is created requires form recreation
//variable.defaultValue = "{a:'First letter',b:'Second letter'}"   
var field = form.newField(variable, JSField.TEXT_FIELD, 100, 100, 200, 200);
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newVariable-String_Number_String|class=node}{tr:id=name}{td}h6.newVariable{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSVariable]{span}{span:id=iets|style=float: left; font-weight: bold;}newVariable{span}{span:id=iets|style=float: left;}\(name, type, defaultValue){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:newVariable-String_Number_String_des|trigger=button|text=}{sub-section}{sub-section:newVariable-String_Number_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:newVariable-String_Number_String_snc|trigger=button|text=}{sub-section}{sub-section:newVariable-String_Number_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newVariable-String_Number_String_prs|trigger=button|text=}{sub-section}{sub-section:newVariable-String_Number_String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the variable
\{[Number]} type -- the specified type of the variable (see Solution Model \-> JSVariable node constants)
\{[String]} defaultValue -- the default value as a javascript expression string
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newVariable-String_Number_String_ret|trigger=button|text=}{sub-section}{sub-section:newVariable-String_Number_String_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:newVariable-String_Number_String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newVariable-String_Number_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newVariable-String_Number_String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newVariable-String_Number_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newVariable-String_Number_String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:newVariable-String_Number_String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var variable = form.newVariable('myVar', JSVariable.TEXT , "'This is a default value (with triple quotes)!'");
//or variable = form.newVariable('myVar', JSVariable.TEXT)
//variable.defaultValue = "'This is a default value (with triple quotes)!'" // setting the default value after the variable is created requires form recreation
//variable.defaultValue = "{a:'First letter',b:'Second letter'}"   
var field = form.newField(variable, JSField.TEXT_FIELD, 100, 100, 200, 200);
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeBean-String|class=node}{tr:id=name}{td}h6.removeBean{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeBean{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeBean-String_des|trigger=button|text=}{sub-section}{sub-section:removeBean-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:removeBean-String_snc|trigger=button|text=}{sub-section}{sub-section:removeBean-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeBean-String_prs|trigger=button|text=}{sub-section}{sub-section:removeBean-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the JSBean to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeBean-String_ret|trigger=button|text=}{sub-section}{sub-section:removeBean-String_ret|trigger=none|class=sIndent}[Boolean] -- true if the JSBean has been removed; false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeBean-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeBean-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeBean-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeBean-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeBean-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeBean-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm('myform');
form.removeBean('mybean')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeButton-String|class=node}{tr:id=name}{td}h6.removeButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeButton{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeButton-String_des|trigger=button|text=}{sub-section}{sub-section:removeButton-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:removeButton-String_snc|trigger=button|text=}{sub-section}{sub-section:removeButton-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeButton-String_prs|trigger=button|text=}{sub-section}{sub-section:removeButton-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the JSButton to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeButton-String_ret|trigger=button|text=}{sub-section}{sub-section:removeButton-String_ret|trigger=none|class=sIndent}[Boolean] -- true if the JSButton has been removed; false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeButton-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeButton-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeButton-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeButton-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeButton-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeButton-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newFormX',myDatasource,null,true,800,600);
var b1 = form.newButton('This is button1',100,100,200,50,null);
b1.name = 'b1';
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX'); if (form.removeButton('b1') == true) application.output('Button has been removed ok'); else application.output('Button could not be deleted'); forms['newFormX'].controller.recreateUI();}");
var b2 = form.newButton('Click here to remove button1',100,230,200,50,jsmethod);
b2.name = 'b2';
forms['newFormX'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeComponent-String|class=node}{tr:id=name}{td}h6.removeComponent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeComponent{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeComponent-String_des|trigger=button|text=}{sub-section}{sub-section:removeComponent-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:removeComponent-String_snc|trigger=button|text=}{sub-section}{sub-section:removeComponent-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeComponent-String_prs|trigger=button|text=}{sub-section}{sub-section:removeComponent-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the component to be deleted
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeComponent-String_ret|trigger=button|text=}{sub-section}{sub-section:removeComponent-String_ret|trigger=none|class=sIndent}[Boolean] -- true if component has been successfully deleted; false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeComponent-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeComponent-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeComponent-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeComponent-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeComponent-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeComponent-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newFormX','db:/server1/parent_table',null,true,1000,750);
var jsbutton = form.newButton('JSButton to delete',100,100,200,50,null);
jsbutton.name = 'jsb';
var jslabel = form.newLabel('JSLabel to delete',100,200,200,50,null);
jslabel.name = 'jsl';
jslabel.transparent = false;
jslabel.background = 'green';
var jsfield = form.newField('scopes.globals.myGlobalVariable',JSField.TEXT_FIELD,100,300,200,50);
jsfield.name = 'jsf';
var relation = solutionModel.newRelation('parentToChild','db:/server1/parent_table','db:/server1/child_table',JSRelation.INNER_JOIN);
relation.newRelationItem('parent_table_id', '=', 'child_table_id');
var jsportal = form.newPortal('jsp',relation,100,400,300,300);
jsportal.newField('child_table_id',JSField.TEXT_FIELD,200,200,120);
var childOne = solutionModel.newForm('childOne','db:/server1/child_table',null,false,400,300);
childOne.newField('child_table_id', JSField.TEXT_FIELD,10,10,100,20);
var childTwo = solutionModel.newForm('childTwo','server1','other_table',null,false,400,300);
childTwo.newField('some_table_id', JSField.TEXT_FIELD,10,10,100,100); 
var jstabpanel = form.newTabPanel('jst',450,30,620,460);
jstabpanel.newTab('tab1','Child One',childOne,relation);
jstabpanel.newTab('tab2','Child Two',childTwo);
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX');\n if ((form.removeComponent('jsb') == true) && (form.removeComponent('jsl') == true) && (form.removeComponent('jsf') == true) && (form.removeComponent('jsp') == true) & (form.removeComponent('jst') == true)) application.output('Components removed ok'); else application.output('Some component(s) could not be deleted'); forms['newFormX'].controller.recreateUI();}");
var removerButton = form.newButton('Click here to remove form components',450,500,250,50,jsmethod);
removerButton.name = 'remover';
forms['newFormX'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeField-String|class=node}{tr:id=name}{td}h6.removeField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeField{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeField-String_des|trigger=button|text=}{sub-section}{sub-section:removeField-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:removeField-String_snc|trigger=button|text=}{sub-section}{sub-section:removeField-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeField-String_prs|trigger=button|text=}{sub-section}{sub-section:removeField-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the JSField to remove
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeField-String_ret|trigger=button|text=}{sub-section}{sub-section:removeField-String_ret|trigger=none|class=sIndent}[Boolean] -- true is the JSField has been successfully removed; false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeField-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeField-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeField-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeField-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeField-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeField-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newFormX',myDatasource,null,true,800,600);
var jsfield = form.newField(scopes.globals.myGlobalVariable,JSField.TEXT_FIELD,100,300,200,50);
jsfield.name = 'jsf';
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX');\n if (form.removeComponent('jsf') == true) application.output('Field has been removed ok'); else application.output('Field could not be deleted'); forms['newFormX'].controller.recreateUI();}");
var removerButton = form.newButton('Click here to remove the field',450,500,250,50,jsmethod);
removerButton.name = 'remover';
forms['newFormX'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeFooter|class=node}{tr:id=name}{td}h6.removeFooter{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeFooter{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeFooter_des|trigger=button|text=}{sub-section}{sub-section:removeFooter_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:removeFooter_snc|trigger=button|text=}{sub-section}{sub-section:removeFooter_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:removeFooter_prs|trigger=button|text=}{sub-section}{sub-section:removeFooter_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:removeFooter_ret|trigger=button|text=}{sub-section}{sub-section:removeFooter_ret|trigger=none|class=sIndent}[Boolean] -- true if the JSFooter has successfully been removed; false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeFooter_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeFooter_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeFooter_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeFooter_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeFooter_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeFooter_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm('myform');
form.removeFooter()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeHeader|class=node}{tr:id=name}{td}h6.removeHeader{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeHeader{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeHeader_des|trigger=button|text=}{sub-section}{sub-section:removeHeader_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:removeHeader_snc|trigger=button|text=}{sub-section}{sub-section:removeHeader_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:removeHeader_prs|trigger=button|text=}{sub-section}{sub-section:removeHeader_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:removeHeader_ret|trigger=button|text=}{sub-section}{sub-section:removeHeader_ret|trigger=none|class=sIndent}[Boolean] -- true if the JSHeader has successfully been removed; false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeHeader_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeHeader_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeHeader_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeHeader_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeHeader_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeHeader_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm('myform');
form.removeHeader()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeInsetList-String|class=node}{tr:id=name}{td}h6.removeInsetList{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeInsetList{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeInsetList-String_des|trigger=button|text=}{sub-section}{sub-section:removeInsetList-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:removeInsetList-String_snc|trigger=button|text=}{sub-section}{sub-section:removeInsetList-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeInsetList-String_prs|trigger=button|text=}{sub-section}{sub-section:removeInsetList-String_prs|trigger=none|class=sIndent}\{[String]} name -- Inset List name.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeInsetList-String_ret|trigger=button|text=}{sub-section}{sub-section:removeInsetList-String_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeInsetList-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeInsetList-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeInsetList-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeInsetList-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeInsetList-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeInsetList-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.getForm('test');
form.removeInsetList('myinsetlist');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeLabel-String|class=node}{tr:id=name}{td}h6.removeLabel{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeLabel{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeLabel-String_des|trigger=button|text=}{sub-section}{sub-section:removeLabel-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:removeLabel-String_snc|trigger=button|text=}{sub-section}{sub-section:removeLabel-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeLabel-String_prs|trigger=button|text=}{sub-section}{sub-section:removeLabel-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the JSLabel to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeLabel-String_ret|trigger=button|text=}{sub-section}{sub-section:removeLabel-String_ret|trigger=none|class=sIndent}[Boolean] -- true if the JSLabel with the given name has successfully been removed; false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeLabel-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeLabel-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeLabel-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeLabel-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeLabel-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeLabel-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newFormX',myDatasource,null,true,1000,750);
var jslabel = form.newLabel('JSLabel to delete',100,200,200,50,null);
jslabel.name = 'jsl';
jslabel.transparent = false;
jslabel.background = 'green';
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX'); if (form.removeComponent('jsl') == true) application.output('Label has been removed'); else application.output('Label could not be deleted'); forms['newFormX'].controller.recreateUI();}");
var removerButton = form.newButton('Click here to remove the green label',450,500,250,50,jsmethod);
removerButton.name = 'remover';
forms['newFormX'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeMethod-String|class=node}{tr:id=name}{td}h6.removeMethod{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeMethod{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeMethod-String_des|trigger=button|text=}{sub-section}{sub-section:removeMethod-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:removeMethod-String_snc|trigger=button|text=}{sub-section}{sub-section:removeMethod-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeMethod-String_prs|trigger=button|text=}{sub-section}{sub-section:removeMethod-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the method
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeMethod-String_ret|trigger=button|text=}{sub-section}{sub-section:removeMethod-String_ret|trigger=none|class=sIndent}[Boolean] -- true if method was removed successfully , false otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeMethod-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeMethod-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeMethod-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeMethod-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeMethod-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeMethod-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', null, null, true, 800, 600);
var hello = form.newMethod('function aMethod(event){application.output("Hello world!");}');
var removeMethod = form.newMethod('function removeMethod(event){ \
									solutionModel.getForm(event.getFormName()).removeMethod("aMethod"); \
									forms[event.getFormName()].controller.recreateUI();\
									}');
var button1 = form.newButton('Call method!',50,50,120,30,hello);
var button2 = form.newButton('Remove Mehtod!',200,50,120,30,removeMethod);
forms['newForm1'].controller.show();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeVariable-String|class=node}{tr:id=name}{td}h6.removeVariable{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeVariable{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:removeVariable-String_des|trigger=button|text=}{sub-section}{sub-section:removeVariable-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:removeVariable-String_snc|trigger=button|text=}{sub-section}{sub-section:removeVariable-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeVariable-String_prs|trigger=button|text=}{sub-section}{sub-section:removeVariable-String_prs|trigger=none|class=sIndent}\{[String]} name -- the specified name of the variable
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeVariable-String_ret|trigger=button|text=}{sub-section}{sub-section:removeVariable-String_ret|trigger=none|class=sIndent}[Boolean] -- true if removed, false otherwise (ex: no var with that name){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeVariable-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeVariable-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeVariable-String_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeVariable-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeVariable-String_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeVariable-String_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('newForm1', null, null, true, 800, 600);
var variable = form.newVariable('myVar', JSVariable.TEXT);
variable.defaultValue = "'This is a default value (with triple quotes)!'";
//variable.defaultValue = "{a:'First letter',b:'Second letter'}"
var field = form.newField(variable, JSField.TEXT_FIELD, 100, 100, 200, 200);
forms['newForm1'].controller.show();

variable = form.removeVariable('myVar');
application.sleep(4000);
forms['newForm1'].controller.recreateUI();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}