I tried in both the ways and its not working.
$this->query_statement = preg_replace("/COMPANYID/", $this->company_id, $this->query_statement);
in this case Reportico giving me the error "COMPANYID" is not defined.
then I tried alternative way which seems better to implement in my case but, it is giving me an error
"Error: User parameter company, specified but not provided to reportico"
I searched into the forum and found couple of workaround to resolve this issue. like, clearing session but none of the solution worked for me.
Can you please help me.
and sorry for late reply.