Skip to main content
Kofax

How to configure an OnJobLoad application event for Invoice Cockpit Connector in INVOICES Manager

Summary

16952

Support Article

To use the Ebydos Invoice Cockpit Connector (EICC) with the Invoices Transfer module, the Event Map in the Manager module must first be configured to ensure that no transfer takes place without the EICC having loaded.

To configure a JobLoad application event for the EICC in INVOICES Manager, do the following:

  1. In the Settings menu, click Application events.
  2. In the Transfer tab, click New.
  3. In the Name list, click OnJobLoad, then click Code.
  4. In the editor window, type the desired code, then click OK.

For example, the following code will prevent the module from running with the EICC component unloaded:

FUNCTION onjobload ( ) AS long
    '** TODO: Implement your handler here.
    '** the main application object IS available IN the application variable.
    IF Ucase$(application.Getsharedvariable("com.ebydos.cockpit.eicc")) = "installed" then
        onjobload = ev_ok 'RETURN value to invoices
    ELSE msgbox "INVOICE COCKPIT Connector not installed. Transfer aborted."
        onjobload = ev_ok_abort 'RETURN value TO invoices
    ENDIF
end function
  • Was this article helpful?