Skip to main content

Alarm Scripts

Alarm scripts are different than other script types because they are NOT saved to the IndySoft database. Instead, they reside as text (*.txt) files in the IndySoft program directory on the workstation that is running the alarm. There are 2 types of alarm scripts:

·Alarm Execution Scripts - these scripts are triggered upon execution of the alarm. The naming scheme for these scripts is always:
 
PREALARM-[AlarmName].TXT
 
Where [AlarmName] is replaced by the exact name of the alarm in uppercase.

·Alarm Breakout Scripts - these scripts are triggered by standard reports that are being created in a breakout-type alarm. Alarm breakouts take a standard report and re-execute it for each distinct value (company, department, location, etc.) These breakout scripts can be used to create the breakout file (also a text file - created to the IndySoft \Temp directory) used for distributing the breakout report. This is advanced IndySoft functionality - see IndySoft support for more details. The naming scheme for these scripts is always:
 
SCRIPT-[AlarmName].TXT
 
Where [AlarmName] is replaced by the exact name of the alarm in uppercase.

Alarm scripts do not contain any procedures/functions that are specific only to alarm functionality. But as with other scripting types, their Syntax and Structure is similar to VBScript. Alarm Scripts include access to all Pascal-Library Custom Scripting Functions, VBScript-Library Custom Scripting Functions, Common IndySoft Procedures/Functions |