Property Summary | |
---|---|
controller | #_super Provides access to the methods of the parent of this form. |
Array | #alldataproviders Get all dataproviders of the form. |
Array | #allmethods Get all script names of the form. |
Array | #allnames Get the names of all elements on the form as an array. |
Array | #allrelations Get all relation names of the form. |
Array | #allvariables Get all form variable names. |
controller | #controller Get the controller of the form. |
elements | #elements Get an array with the elements in the form. |
JSFoundSet | #foundset Get the foundset of the form. |
Property Details |
---|
_super |
Provides access to the methods of the parent of this form. |
Returns controller |
Sampleforms.customer._super.some_method(); |
alldataproviders |
Get all dataproviders of the form. |
Returns Array |
Samplevar dataprovidersNames = forms.customer.alldataproviders; application.output("This form has " + dataprovidersNames.length + " data providers.") for (var i=0; i<dataprovidersNames.length; i++) application.output(dataprovidersNames[i]); |
allmethods |
Get all script names of the form. |
Returns Array |
Samplevar methodNames = forms.customer.allmethods; application.output("This form has " + methodNames.length + " methods defined.") for (var i=0; i<methodNames.length; i++) application.output(methodNames[i]); |
allnames |
Get the names of all elements on the form as an array. |
Returns Array |
Samplevar names = forms.customer.allnames; application.output("This form has " + names.length + " named items.") for (var i=0; i<names.length; i++) application.output(names[i]); |
allrelations |
Get all relation names of the form. |
Returns Array |
Samplevar relationsNames = forms.customer.allrelations; application.output("This form has " + relationsNames.length + " relations.") for (var i=0; i<relationsNames.length; i++) application.output(relationsNames[i]); |
allvariables |
Get all form variable names. |
Returns Array |
Samplevar varNames = forms.customer.allvariables; application.output("This form has " + varNames.length + " variables defined.") for (var i=0; i<varNames.length; i++) application.output(varNames[i]); |
controller |
Get the controller of the form. |
Returns controller |
Sampleforms.customer.controller.enabled = !forms.customer.controller.enabled; |
elements |
Get an array with the elements in the form. |
Returns elements |
Samplevar elems = forms.customer.elements; application.output("This form has " + elems.length + " named elements.") for (var i=0; i<elems.length; i++) application.output(elems[i].getName()); |
foundset |
Get the foundset of the form. |
Returns JSFoundSet |
Sampleapplication.output("selected index in form foundset: " + forms.customer.foundset.getSelectedIndex()); |