DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
Enter additional information related to this 'class' inside the {div} macro with 'id=description'
{column:width=80px|padding=0px}{column}{column}{column}
Property Summary
{column:width=80px|padding=0px}{column}{column}{column}
Method Summary
Object[]
getArguments()
Gets the argument array for this method if that is set for the specific action this method is taken from.
{column:width=100%|padding=0px}{column}
Property Details
Sample
var method = form.newMethod('function original() { application.output("Original function."); }'); application.output('original method name: ' + method.getName()); application.output('original method code: ' + method.code); method.code = 'function changed() { application.output("This is another function."); }'; method.showInMenu = false; var button = form.newButton('Click me!', 10, 10, 100, 30, method);
{column:width=100%|padding=0px}{column}
Method Details
Object[]
getArguments
()
Returns
Object[] – Array of the arguments, null if not specified.
Sample
var frm = solutionModel.getForm("myForm"); var button = frm.getButton("button"); // get the arguments from the button. // NOTE: string arguments will be returned with quotes (comp.onAction.getArguments()[0] == '\'foo\' evals to true) var arguments = button.onAction.getArguments(); if (arguments && arguments.length > 1 && arguments[1] == 10) { // change the value and assign it back to the onAction. arguments[1] = 50; button.onAction = solutionModel.wrapMethodWithArguments(button.onAction,arguments); }
getName
()
Sample
var method = form.newMethod('function original() { application.output("Original function."); }'); application.output('original method name: ' + method.getName()); application.output('original method code: ' + method.code); method.code = 'function changed() { application.output("This is another function."); }'; method.showInMenu = false; var button = form.newButton('Click me!', 10, 10, 100, 30, method);
getScopeName
()
Sample
var methods = solutionModel.getGlobalMethods(); for (var x in methods) application.output(methods[x].getName() + ' is defined in scope ' + methods[x].getScopeName());