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 having the EICC 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 JobLoad, and then click Code.
- In the editor window, type the desired code, and then click OK.
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