Child pages
  • Globals
Skip to end of metadata
Go to start of metadata


Property Summary
Array #allmethods
Get all global script names of the current solution.
Array #allrelations
Get all global relation names of the current solution.
Array #allvariables
Get all global variable names of the current solution.
controller #currentcontroller
Get the controller of the top level form in the currently active dialog.

Property Details
allmethods
Get all global script names of the current solution.
Returns
Array
Sample
var allMethodNames = globals.allmethods;
application.output("There are " + allMethodNames.length + " global methods.");
for (var i=0; i<allMethodNames.length; i++)
	application.output(allMethodNames[i]);
allrelations
Get all global relation names of the current solution.
Returns
Array
Sample
var allRelationNames = globals.allrelations;
application.output("There are " + allRelationNames.length + " global relations.");
for (var i=0; i<allRelationNames.length; i++)
	application.output(allRelationNames[i]);
allvariables
Get all global variable names of the current solution.
Returns
Array
Sample
var allVarNames = globals.allvariables;
application.output("There are " + allVarNames.length + " global variables.");
for (var i=0; i<allVarNames.length; i++)
	application.output(allVarNames[i]);
currentcontroller
Get the controller of the top level form in the currently active dialog.
Returns
controller
Sample
application.output("Current controller is: " + currentcontroller.getName());
  • No labels