You use this program to add scripting to an Espresso component. This allows you to build additional business logic into Espresso, for example you can execute a workflow when a sales order is created, change the color of an account balance when it reaches a certain amount, or prevent an operator from adding a sales order line against a specific warehouse.
A script can be added against a component (when the component is loaded or refreshed) or against a particular field on the component (when it gains focus, or after it is changed). The events available are dependant on the application you are maintaining.
Field | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
Event |
|
Enter the Javascript code in this pane.
Code generation for a number of common and useful tasks such as changing colors of items, getting values and setting values are supported.
This pane contains sample scripting that you can import into your script, and modify as required.
Field | Description |
---|---|
Insert syntax |
Insert the selected code to your code in the Script editor pane. The code will be inserted at the point where the cursor was last positioned. |