KoolReport's Forum

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

How to render a Report when we click on Link button in Home Page View. #961

Closed Sowmya opened this topic on on Jul 2, 2019 - 2 comments

Sowmya commented on Jul 2, 2019

Hi KoolReport team,

    I am Sowmya, I am KoolReport Pro User. I raised the same ticket 2days back. Upto now I didn't get any reply from You.
    I implemented Koolreport4 in CodeIgniter3. Here I want to attach my report files(to show you how my report looks like). In your Blog it is not supported to upload the files. So that’s y I’m generating this ticket through OutLook. 

AIM: My main Aim is I want to render my Report when I click on Link button in Home Page View.

My Issue is:

    When I render my Report directly from HOME Controller Index method, it gives me nice OUTPUT.

application/controllers/Home.php:

class Home extends CI_Controller 
{
   public function index()
    {   
        include APPPATH."mainiDM\ProfitCenter_Wise_Report.php";
        $report = new ProfitCenter_Wise_Report;
        $report->run()->render();
      }  
}

Problem :

When I render my Report from HOME Controller ,<userDefinedMethodName>, it gives me Empty OUTPUT.

application/controllers/Home.php:

class Home extends CI_Controller 
{
            
    public function index()
    {
            $this->load->view('..\mainiDM\Multi_Drop_Down.php');
     }  
   public function ProfitCenter_Wise_Report()
    {
       include APPPATH."mainiDM\ProfitCenter_Wise_Report.php";
       $report = new ProfitCenter_Wise_Report;
       $report->run()->render();
    }
}

Application/mainiDM/ Multi_Drop_Down.php:

<div class="dropdown">
    <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Sales</button>
    <ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
       <li class="dropdown-submenu">
          <li><a href="<?php echo site_url('Home/ProfitCenter_Wise_Report'); ?>">ProfitCenter Wise Sales</a></li>

AIM: My main Aim is I want to render my Report when I click on Link button in Home Page View.

Thank You In Advance. Please give me reply as early as Possible……

KoolReport commented on Jul 3, 2019

Please check your name of controller whether it matches with your url. High chance that the action did not get called.

Sowmya commented on Jul 3, 2019

Hi KoolReport team,

while I am rendering my report it shows only grid output. I cant get graph. Please check the rendering process of mine, and give the good guideline. Please please help me, for this task I raised ticket so many times. Now I reached my Deadline. Please give me reply as early as possible...

Home.php(Home Controller)

public function index()
      {
        $this->load->view('..\mainiDM\Multi_Drop_Down.php');
      }
      //ProfitCenter_Wise_ExcelReport Execution
      public function ExcelReport()
      {
        include APPPATH."reports\ExcelReport.php";
        $report = new ExcelReport;
        $report->run()->render("reports\ExcelReport.view",true);
      }

OUTPUT

$this->dataStore('Apr_Sales') CostCentre MonFiled YearField InvoiceValue Manufacturing 4 2019 63923906.5 Rental 4 2019 738789.95999999996 Service 4 2019 3474476.4300000002 Spares 4 2019 9140239.8599999901 Traded 4 2019 0.0

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