elements

Overview

"elements" is a top level property of form scopes at runtime that gives access to all available elements on that form, by name.

Properties Summarized

TypeNameSummary

Get an element of the form by its index.

Get an element of the form by its name.

Get the names of all elements of the form, as an array.

Get the number of elements of the form.

Properties Detailed

[index]

Get an element of the form by its index.

Type RuntimeComponent

Sample

for (var i=0; i<elements.length; i++)
{
	var elem = elements[i];
	application.output(elem.getName() + ": " + elem.getDataProviderID());
}

[name]

Get an element of the form by its name.

Type RuntimeComponent

Sample

for (var i=0; i<elements.allnames.length; i++)
{
	var name = elements.allnames[i];
	var elem = elements[name];
	application.output(name + ": " + elem.getDataProviderID());
}

allnames

Get the names of all elements of the form, as an array.

Type Array

Sample

for (var i=0; i<elements.allnames.length; i++)
{
	var name = elements.allnames[i];
	var elem = elements[name];
	application.output(name + ": " + elem.getDataProviderID());
}

length

Get the number of elements of the form.

Type Number

Sample

for (var i=0; i<elements.length; i++)
{
	var elem = elements[i];
	application.output(elem.getName() + ": " + elem.getDataProviderID());
}

Last updated