- Added method rowNumber to controller system/Filters

- Fixed JSs to count the number of record in InfoCenter and to send messages
This commit is contained in:
Paolo
2018-02-28 09:59:56 +01:00
parent c66ed6dd8f
commit b8e7599888
2 changed files with 61 additions and 36 deletions
@@ -392,4 +392,21 @@ class Filters extends VileSci_Controller
$this->output->set_content_type('application/json')->set_output(json_encode($json));
}
/**
*
*/
public function rowNumber()
{
$json = new stdClass();
$dataset = $_SESSION[self::SESSION_NAME]['dataset'];
if (is_array($dataset))
{
$json->rowNumber = count($dataset);
}
$this->output->set_content_type('application/json')->set_output(json_encode($json));
}
}