Hi friends!, I have a problem when I trying export to Excel
My report is:
function setup()
{
$fecha_inicio = $this->params["fecha_inicio"];
$fecha_fin = $this->params["fecha_fin"];
$cod_perfil = $this->params["cod_perfil"];
$myData = 'SELECT * FROM reporte_concurrencia(\''. $fecha_inicio .'\',\''. $fecha_fin .'\', '. $cod_perfil .')' ;
$node2 = (object)[];
$this->src("pgsql") //<--config/database
->query(
$myData
)->saveTo($node2);
$node2->pipe($this->dataStore('concurrencia'));
$node2->pipe(new Transpose2())->pipe($this->dataStore('concurrencia_cube'));
}
dataStore('concurrencia_cube') I am using in the report view:
and with this I am trying to get the data from the columns (names etc)
$data = $this->dataStore("concurrencia_cube")->data();
$columnsMeta = $this->dataStore("concurrencia_cube")->meta()["columns"];
but I get the following error: "Call to a member function meta() on array"
I hope you can help me! Javier