KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.

Link to new table view with same search criteria. #1073

Closed Rooze McKelvey opened this topic on on Sep 3, 2019 - 2 comments

Rooze McKelvey commented on Sep 3, 2019


User searches for a project ID and views a project summary page. Navigation allows for also viewing other aspects (tasks, tickets, etc) of that same project. How can I build the navigation so that it goes to the desired page for that same project?


Eugene commented on Sep 4, 2019


What do you mean saying "Navigagtion"?

But if I understood your case correctly you can use formatValue property. If I need that a part of the table output was a link I do something like this:

"formatValue" => function ($value, $row) {
                        return "<a  href='../tasks.php?project_Id=" . $row['project_Id'] . "'target=\"subreport\">$value</a>";

with $row variable you can get access to all your data in the current row, I think project id must be in your data row so you can use it to pass project id to the subreport.

Or if you have project_Id as a parameter from some input control you can use this parameter anywhere in your report including your navigation control.

Rooze McKelvey commented on Sep 4, 2019

Thanks; don't know why I struggled with that so much yesterday! Makes perfect sense today. :-)

KoolReport Is Free and Open-Source!

KoolReport is a professional php reporting framework which saves you tons of time to construct dynamic data report & dashboard.

  • Connect to various datasources such as MySQL, SQL Server, MongoDB or even from CSV or Excel file.
  • Contain series of powerful built-in data processes for your data manipulation.
  • Generate stunning charts and graphs to help you communicate data insights to your audiences effectively.
  • Integrate seamlessly with any php frameworks such as Laravel, CodeIgniter, Symfony.
Download Now and register our tutorials to get started!

Download KoolReport