conditional_format_between
conditional_format_between
conditional_format_between(string $column, mixed parameter1, mixed $parameter2, string $color)
Parameter | Description |
---|---|
$column | The column on which you want to apply this conditional formatting criteria. |
$parameter1 | If any cell data, in the selected column, is more than this parameter and less than the second parameter, it meets this conditional formatting criteria, therefore it will be highlighted. |
$parameter2 | If any cell data is less than this parameter and more than the first parameter, it meets this conditional formatting criteria, therefore it will be highlighted. |
$color | This color will be used to highlight the cells that meet this conditional formatting criteria. |
$report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("items"))
->select_fields(array("id", "country", "list_price", "units_in_stock","product_name"))
->set_grouping(array("country"))
->conditional_format_less("units_in_stock", 10, true)
->conditional_format_between("list_price", 0, 100,"#014421");
$engine = new CustomEngine($report);
$report_path = $engine->create_report();