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 sSummerysSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property SummerySummary{th}{tr}{tbody}{tr}{td}[Array]{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:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=allnames|class=node}{tr:id=name}{td}h6.allnames{td}{tr}{tr:id=des}{td}{sub-section:allnames_des|text=|trigger=button}{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|text=|trigger=button}{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|text=|trigger=button}{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|text=|trigger=button}{sub-section}{sub-section:allnames_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:allnames_see|text=|trigger=button}{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|text=|trigger=button}{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|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allnames_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=length|class=node}{tr:id=name}{td}h6.length{td}{tr}{tr:id=des}{td}{sub-section:length_des|text=|trigger=button}{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|text=|trigger=button}{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|text=|trigger=button}{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|text=|trigger=button}{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|text=|trigger=button}{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|text=|trigger=button}{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|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:length_sam|trigger=none}{code:language=javascript}
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}{table}