onBeforeReportOpen() (tick_24Batch Wizard Only)


This function is called just before the report is opened (such as in a browser).

$obro_open - (integer) whether to open the report; defaults to 1 (open) or 0 (don't open) based on the current user setting

This is a good event to use the ShellExecute() function to call another program to act on or process the report.

Example 1:

This function simply cancels the automatic opening of the report (if that option is set).

function onBeforeReportOpen() {
 $obro_open=false; // don't open the report