KoolReport's Forum

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

Koolreport paging #2945

Open pickorea opened this topic on on Jan 16, 2023 - 1 comments

pickorea commented on Jan 16, 2023

Hello,

Could you please help me with the paging. Where to put this code

"paging"=>array(

    "pageSize"=>10,
    "pageIndex"=>0,
),

I tried to place the above code inside Myreport.view.php

<?php use \koolreport\widgets\koolphp\Table; ?> <html>

<head>
<title>My Report</title>
</head>
<body>
    <h1>Training Attendance Records </h1>
    <?php
    Table::create(
        [
        "dataSource"=>$this->dataStore("")
    ]);
        "paging"=>array(
        "pageSize"=>10,
        "pageIndex"=>0,
       ),
    ?>
</body>

</html>

pickorea commented on Jan 16, 2023

Arh Its working when I placed it inside [] like this

<?php use \koolreport\widgets\koolphp\Table; ?> <html>

<head>
<title>My Report</title>
</head>
<body>
    <h1>Training Attendance Records </h1>
    <?php
    Table::create(
        [
            "paging"=>array(
                "pageSize"=>15,
                "pageIndex"=>0,
            ),
        "dataSource"=>$this->dataStore("")
    ]);
    ?>
</body>

</html>

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
solved

None