KoolReport's Forum

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

Integrated into CodeIgniter #798

Open Keerthiga opened this topic on on Apr 12, 2019 - 1 comments

Keerthiga commented on Apr 12, 2019

Hi team, I have created one CodeIgniter project. I had followed the guideline by unzipped the folder and pasted into my project (codeigniter/application/libraries ).And i have added the below line in my BussinessId.php

require_once "../koolreport/autoload.php"; class BussinessId extends \koolreport\KoolReport {

use \koolreport\codeigniter\Friendship;

protected function setup()

{
	 $this->src('alljobs')
    ->query("SELECT h.doc_code,h.quoted_sale,h.doc_issued_date,s.doc_status_name,u.business_name FROM `nrm_doc_header` as h join nrm_doc_status as s on h.doc_status_id = s.doc_status_id join nrm_business as u on h.business_id = u.business_id")
    ->pipe(new Group(array(
	 "by"=>"business_name",
	 //"by"=>"doc_status_name",
	  "sum"=>"quoted_sale"
	)))
	->pipe(new Sort(array(
        "quoted_sale"=>"desc"
    )))

    ->pipe($this->dataStore('jobs_list'));
}

}

But,i'm not able to connect with database. I have used koolreport pro version for this project.Can you please help me to find out the issue. Appreciated.

Keerthiga commented on Apr 12, 2019

I have error like

Uncaught Error: Call to undefined method CI_DB_mysqli_result::unbuffered_row() in C:\xampp\htdocs\hpright\application\libraries\koolreport\packages\codeigniter\CIDataSource.php:106 Stack trace: #0

Welcome->index() #3 C:\xampp\htdocs\proj\index.php(403): require_once('C:\xampp\htdocs...') #4 {main} thrown in C:\xampp\htdocs\proj\application\libraries\koolreport\packages\codeigniter\CIDataSource.php on line 106

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
help needed

None