KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Retrieve data to process #254

Open Richi Ras opened this topic on on Apr 19, 2018 - 6 comments

Richi Ras commented on Apr 19, 2018

How is it possibile to retrieve the data elaborated by the report to manage to other processes ?

KoolReport commented on Apr 19, 2018

Could you please explain further your use case

Richi Ras commented on Apr 19, 2018

I make a table with (Table::create) and would like to get table data to elaborate that data, but no widgets or processes already included in koolreport will do this kind of elaboration because is very specific, then I need the raw data to elaborate "manually" with php, is it possible ?

KoolReport commented on Apr 19, 2018

You can get the whole set of data with this:

$data = $this->dataSource("abc")->data();

You will received array of data row.

Richi Ras commented on Apr 19, 2018

Well but by where I can call like this ? I do something like this:

$report = new AMB($_POST);
$report->run();					
$report_results = $report->render("AMB",true);

how to get the data to a variable like $report_data ?

KoolReport commented on Apr 19, 2018

I see, I thought you want to get data inside the view of report, make further process and use Table to display. If you want to get data outside of report you can do:

$report = new AMB($_POST);
$report->run();	

$data = $report->dataStore("abc")->data();
Richi Ras commented on Apr 19, 2018

Thank you !!

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None