Supported Clients
SmartClient
WebClient
NGClient
MobileClient

Property Summary
RuntimeComponent
[index]
Get an element of the form by its index.
RuntimeComponent
[name]
Get an element of the form by its name.
Array
allnames
Get the names of all elements of the form, as an array.
Number
length
Get the number of elements of the form.

Property Details

[index]

Get an element of the form by its index.

Returns

RuntimeComponent

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

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.

Returns

RuntimeComponent

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

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.

Returns

Array

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

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.

Returns

Number

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

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