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:
- In the Settings menu, click Application events.
- In the Transfer tab, click New.
- In the Name list, click OnJobLoad, then click Code.
- 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
Article # 301663