Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi Tyler,
You may use the $this->dataSource("mystore")->countData()
it will return the number of rows in that dataStore. So basically you can check it and decide whether to render Table.
FYI, the DataStore has numerous useful functions that you can play with data. View here.
Regards,
KoolPHP Inc
So I guess $deniedDevices
is a report, is it?
So you do this:
<?php
$deniedDevices = new DeniedDevicesReport;
$definedDevices->run(); // <-- Need to run report first to get result
if($deniedDevices->dataStore("DeniedDevices")->countData()>0)
{
$deniedDevices->render();
}
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo