Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rev: 1377850930704
Wiki Markup
{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'{div}
{div:id=description}{div}\\ 

{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]}{tr:id=name}{td}h6.\[index\]{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get an element of the form by its index.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[RuntimeComponent]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=[name]}{tr:id=name}{td}h6.\[name\]{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get an element of the form by its name.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[RuntimeComponent]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=allnames}{tr:id=name}{td}h6.allnames{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the names of all elements of the form, as an array.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]\[]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=length}{tr:id=name}{td}h6.length{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the number of elements of the form.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}