dynamic_filter_more
dynamic_filter_more
dynamic_filter_more($table, $column)
Parameter | Description |
---|---|
$table | The table to be filtered. |
$column | The filter-by column (The column by which you want to filter the report). |
use SRE\Engine\CustomEngine;
use SRE\Engine\ReportOptions;
require_once "sre_bootstrap.php"; //Make sure use the correct relative path to this file.
$report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("items"))
->select_all_fields()
->set_grouping("country")
->dynamic_filter_more("items","units_in_stock");
$engine = new CustomEngine($report);
$report_path = $engine->create_report();
if ($report_path) {
echo "Report created successfully! Your report URL: $report_path ";
}