Custom Hooks

Use the Custom Hooks tab of the Application Preferences dialog box to set the process that should run before a particular process runs or after a process completes.

Pre-process and post-process custom applications can be set for the following Cobra processes:
  • Advance Calendar
  • Calculate Forecast
  • Integration
  • Move Work Package
  • Reclass
  • Update Totals
A custom application, which is saved on the application server and not on the local machine, can be any of the following types:
  • Script: A text file with a SQL query or list of commands in VFP
  • Executable: For example, a compiled VB or C++ application
  • Visual FoxPro Procedure: A compiled .FXP file
Using custom hooks in Cobra involves the following steps:
  • Creating the custom application using any of the application types
  • Setting the processes that should run before a process runs or after the process completes using the Custom Hooks tab of the Application Preferences dialog box

The table below provides a sample path and extension for each custom application type and which fields to specify or select on the Custom Hooks tab.

Custom Application Type Sample Path and Extension Notes
Script <Drive>:\<Path>\Test.txt In the Custom Application field, enter or locate the sample path and extension, and select Script in the Type field.
Executable <Drive>:\<Path>\Test.exe In the Custom Application field, enter or locate the sample path and extension, and select Executable in the Type field.
Visual FoxPro Procedure <Drive>:\<Path>\Test.fxp In the Custom Application field, enter or locate the sample path and extension, and select Visual FoxPro Procedure in the Type field.