An add-on can be run using the Run add-on option in the Network menu.
An add-on allows a user, usually an administrator, to set up Ruby scripts to perform various tasks that may be performed on a regular basis, and to associate each script with a menu item.
For example, a script could be written that specifies the import information when importing data from an external data source. Or a script could be used to find all overdue scheduled tasks and to send an email notifying of work that is past its due date.
The add-ons must be defined in a CSV file called scripts.csv that consists of two columns. The first column must contain the name of the add-on (this will appear as a menu item in the Run add-on option) and the second must contain the path for the script file itself (see Step 4 of the following procedure for further information). Only one Ruby script can be associated with each menu item.
The
scripts.csv file must be located in a sub-folder (called
scripts) of the folder used by your application data. If this has already been set up, then a list of add-on options will appear when the NetworkRun add-on option is selected, from which you can select the appropriate one.
To set up and run an add-on
The folder location can be found in the NEP (iws) Folder entry in Additional Information section of the About box window.
For example: C:\Users\User_One\AppData\Roaming\Innovyze\WorkgroupClient
The script file paths may either be fully qualified paths (i.e. beginning with a drive letter or the name of a network share) in which case that path will be used, or a non-fully qualified path in which case the software will assume the file is in the folder containing the csv file or a subdirectory of it.
InfoAsset Manager now runs the applicable Ruby script.