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


Property Summery
String #code
The full source code of this method (including doc and function declaration).
Boolean #showInMenu
Flag that tells if the method appears or not in the "Methods" menu of Servoy Client.

Method Summery
String #getName()
The name of the method.

Property Details
code
The full source code of this method (including doc and function declaration).
Returns
String
Sample
var method = form.newFormMethod('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);
showInMenu
Flag that tells if the method appears or not in the "Methods" menu of Servoy Client.
Returns
Boolean
Sample
var method = form.newFormMethod('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);

Method Details
getName

String getName ()

The name of the method.
Returns
String – A String holding the name of this method.
Sample
var method = form.newFormMethod('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);
  • No labels