Hi support team,
In order for me to make dynamic of report's name - "purchase_report (number)", I came out the codes as shown below. At the end, i don't have to create similar function again to read different report name. So far i got error. I need your help whether you have better solution to solve it? Appreciate you.
public function generate_report()
{
$childnode = $this->input->post('childnode');
$mothernode= $this->input->post('mothernode');
$report = new purchase_report .$childnode. (array(
'mothernode' => $mothernode,
));
$report->run()->render();
}