{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}Property Summary{th}{tr}{tbody}{tr}{td}[RuntimeComponent]{td}{td}[\[index\]|#\[index\]]
Get an element of the form by its index.{td}{tr}{tbody}{tbody}{tr}{td}[RuntimeComponent]{td}{td}[\[name\]|#\[name\]]
Get an element of the form by its name.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#allnames]
Get the names of all elements of the form, as an array.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#length]
Get the number of elements of the form.{td}{tr}{tbody}{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=[index]|class=node}{tr:id=name}{td}h6.\[index\]{td}{tr}{tr:id=des}{td}{sub-section:[index]_des|trigger=button|text=}{sub-section}{sub-section:[index]_des|trigger=none|class=sIndent}Get an element of the form by its index.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:[index]_snc|trigger=button|text=}{sub-section}{sub-section:[index]_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:[index]_prs|trigger=button|text=}{sub-section}{sub-section:[index]_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:[index]_ret|trigger=button|text=}{sub-section}{sub-section:[index]_ret|trigger=none|class=sIndent}[RuntimeComponent]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:[index]_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:[index]_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:[index]_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:[index]_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:[index]_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:[index]_sam|trigger=none}{code:language=javascript}
Div
style
display:none
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
Enter additional information related to this 'class' inside the {div} macro with 'id=description'
for (var i=0; i<forms.customer.elements.length; i++)
{
var elem = forms.customer.elements[i];
application.output(elem.getName() + ": " + elem.getDataProviderID());
}
{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}{tr:id=des}{td}{sub-section:[name]_des|trigger=button|text=}{sub-section}{sub-section:[name]_des|trigger=none|class=sIndent}Get an element of the form by its name.{sub-section}{td}{tr}{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}[RuntimeComponent]{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}
for (var i=0; i<forms.customer.elements.allnames.length; i++)
{
var name = forms.customer.elements.allnames[i];
var elem = forms.customer.elements[name];
application.output(name + ": " + elem.getDataProviderID());
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=allnames|class=node}{tr:id=name}{td}h6.allnames{td}{tr}{tr:id=des}{td}{sub-section:allnames_des|trigger=button|text=}{sub-section}{sub-section:allnames_des|trigger=none|class=sIndent}Get the names of all elements of the form, as an array.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:allnames_snc|trigger=button|text=}{sub-section}{sub-section:allnames_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:allnames_prs|trigger=button|text=}{sub-section}{sub-section:allnames_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:allnames_ret|trigger=button|text=}{sub-section}{sub-section:allnames_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:allnames_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:allnames_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:allnames_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:allnames_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:allnames_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:allnames_sam|trigger=none}{code:language=javascript}
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
allnames
Table Row (tr)
id
name
Table Cell (td)
allnames
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
Get the names of all elements of the form, as an array.
for (var i=0; i<forms.customer.elements.allnames.length; i++)
{
var name = forms.customer.elements.allnames[i];
var elem = forms.customer.elements[name];
application.output(name + ": " + elem.getDataProviderID());
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=length|class=node}{tr:id=name}{td}h6.length{td}{tr}{tr:id=des}{td}{sub-section:length_des|trigger=button|text=}{sub-section}{sub-section:length_des|trigger=none|class=sIndent}Get the number of elements of the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:length_snc|trigger=button|text=}{sub-section}{sub-section:length_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:length_prs|trigger=button|text=}{sub-section}{sub-section:length_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:length_ret|trigger=button|text=}{sub-section}{sub-section:length_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:length_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:length_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:length_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:length_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:length_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:length_sam|trigger=none}{code:language=javascript}