new Evaluator()
Creates a new Evaluator which can be used to evaluate FormScript code.
- Source:
Methods
bind()
Binds the Evaluator to the form.
Parameters:
Name | Type | Description |
---|---|---|
params.widget |
object | The XReport widget to bind the Evaluator to. |
params.context |
string | The context in which FormScript code is evaluated. Values: "builder", "viewer" |
- Source:
eval(script, context)
The main method to evaluate FormScript code
Parameters:
Name | Type | Description |
---|---|---|
script |
string | FormScript source code |
context |
string | The context in which FormScript code is evaluated. Values: "builder", "viewer" |
- Source: