Dear support, I have been working on a single page. The paging works only partially - I can reduce number of rows displayed on one page to 10 (as written in the code) but I there's no page numbers displayed to click on (to go to another page). Here's the code:
<?php
require_once "../koolreport/autoload.php";
use \koolreport\widgets\koolphp\Table;
class Single_page extends \koolreport\KoolReport
{
use \koolreport\instant\SinglePage;
use \koolreport\clients\Bootstrap;
function settings()
{
include "parametres_connexion_database.php";
return $database_connection;
}
function setup()
{
$this->src('myDatabase') ->query('SELECT * from main_request where "Team" = \'team\'')
->pipe($this->dataStore("team1"));
}
}
$report = new Single_page;
$report->start();
?>
<html>
<head>
<title>Table single page</title>
</head>
<body>
<h1>Results</h1>
<?php
Table::create(array(
"dataStore"=>$report->dataStore("team1"),
"columns"=>array("User id", "numberRequests"),
"paging"=>array(
"pageSize"=>10,
"align"=>"center",
"pageIndex"=>0,
)
));
?>
</body>
</html>
<?php
$report->end();
?>
Thanks in advance for your help