Collapse AllExpand All

11.4. Scripts

xTuple ERP supports QtScript, a tool for loading UI forms using ECMAScript based language files for creating and modifying application functionality without the need to recompile. To take advantage of this functionality, one should have a basic understanding of how to program using ECMAScript and create UI screens using QtDesigner. To learn more about scripting for xTuple ERP, please see the Scripting Guide.

Tip

You can enable automatic script debugging using the Qt Script debugger by setting a simple option on the Advanced tab of the User Preferences screen. If you are trying to develop your own custom scripts and want to use the Qt Script debugger, xTuple recommends starting your script with this command. To learn more about the User Preferences setting, see Section 5, “User Account Preferences”.

To view the master list of available scripts, go to System > Design > Scripts. The following screen will appear:

List Scripts

The List Scripts master list displays information on all stored scripts, including script name, description, order, and enabled status. If the script is part of a larger package, the name of the parent package will be displayed—with all the child scripts appearing in a nested list below it. Select the Organize By Package option to see an indented view of the scripts and the package they belong to.

Note

You may edit multiple scripts at the same time. To do so, open scripts for editing side-by-side.