Hi support
I'm experimenting with writing a pass-through extension. I modified the example passthrough.php as follows:
function Ext_Passthrough($id, $options, $dataIn, $colInfo )
{
echo "PASSTRHOUGH";
print_r(['id'=>$id, 'options'=>$options, 'dataIn'=>$dataIn, 'colInfo'=>$colInfo]);
and the extensions.php as follows:
'passthrough' => array(
'enabled' => true,
'autoload' => 1,
'php' => 'passthrough.php',
// Passthrough extension only handles the single_pass_call
'single_pass_call' => 'Ext_Passthrough',
'javascript' => array(),
'css' => array(),
'mydbrextension' => 1,
'cmds' => array(
array(
'cmd' => 'dbr.passthrough'
),
array(
'cmd' => 'dbr.passthrough.bla',
'bla' => 1
),
),
'passthrough' => true
),
When I run a report as follows:
select 'dbr.passthrough';
select 'dbr.passthrough.bla', 'bla';
select 1;
The Ext_Passthrough function is called twice? What am I doing wrong?
Thanks
Mark