context
field in your script. For example:public void clicked() { context.echo("Hello World"); }The script helper is available through the
helper
field in your script. For example:public void clicked() { XULWidget widget = helper.getCurrentWidget(); }
public void clicked() { context.echo("My value:" + value); }To get the current widget in a Groovy script:
public void clicked() { XULWidget widget = helper.getCurrentWidget(); }
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence