Forms

(forms)

Overview

Forms object. Available as "forms." in scripting. It gives easy access to (and code completion for) the solution's forms.

Properties Summarized

Properties Detailed

[name]

Get a form by name.

Type RuntimeForm

Sample

var allForms = solutionModel.getForms();
application.output("There are " + allForms.length + " forms.");
for (var i=0; i<allForms.length; i++)
{
	var f = forms[allForms[i].name];
	application.output("Form " + allForms[i].name + " has selected index " + f.controller.getSelectedIndex());
}

length

Get the number of forms loaded into memory.

Type Number

Sample

application.output("Number of forms loaded into memory: " + forms.length);

Last updated