Jim2 makes extensive use of scripting technology, providing unparalleled power to tailor to specific company and/or industry requirements.
As a default, the scripting engine is not available. This is to protect from potential issues with the database. This is also governed by Jim2 Security.
All information in this area is only relevant if on premises customers have permission to access the scripting engine. Scripts are written in DelphiScript (Pascal).
Scripts can easily be imported, and instantly become seamlessly integrated into Jim2.
|
Note: The Scripting Engine is not accessible for Jim2.Cloud customers at any time.
|
To modify any existing scripts or create custom scripts, they will be stored, saved and available via the Script Editor screen.
|
|
Edit Script
|
The following warning will appear when attempting to edit a system script. This script must be copied and saved as a different name. Choose a script, then click Edit Script on the ribbon to make changes. It is very important that it is saved as a different name prior to editing to ensure that scripts will not be broken during an upgrade. See Copy from Existing below.
|
New
|
Click New to add a new script.
|
Copy from Existing
|
This will allow copying of an existing script and giving it a different name.
|
Note: This is the correct way to edit any system script.
|
|
Save/Close/Delete/Print
|
Save, close, delete, print script.
|
Import/Export/Import pas
|
Import/export scripts into Script Editor. Import Pascal source.
|
Send Custom Scripts to Happen
|
This will run through all scripts and send all custom scripts to Happen Business.
|
Import from Happen
|
Import custom scripts from Happen.
|
Compile All Custom
|
Compiles all custom scripts. Useful after amending/deleting scripts.
|
Object Properties
|
Brings up the object inspector.
|
1.On the ribbon, go to Tools > Scripting Engine.
This will open the Script Explorer screen.
2.On the left-hand side of the screen is displayed a list of available scripts, identified by their name. Select a script to view or edit.
3.The tabs will provide access to the Component Palette – standard components, data access components, Jim2 components, TopGrid components, RBuilder components – for use in editing this script.
4.The details of the script selected will show in the right-hand side – including its name, the last modified date/time, the script type (report or export), the current version number of that script, the initials of the last author and a brief memo describing the script.
5.To edit the script, click Edit. The Init field in the footer will be updated with the logged user's initials. Upon saving, Jim2 will update the Modified date/time field, and increment the Version field by .01.
|
Attempting to edit a system script, will produce the following warning:
It is important to save as a different name prior to editing to ensure that system scripts will not be broken during an upgrade.
|
|