This topic is locked
[SOLVED]

 set default filter panel value

11/11/2018 8:00:56 AM
PHPRunner General questions
F
firecloud author

How to set default value for filter panel





set the option to more than and value to 2 hours from the time link clicked.
this solution work by modify the menu URL,

//12%2F11%2F2018%200.00.00

$d = date("d", strtotime('-2 hour'));

$m = date("m", strtotime('-2 hour'));

$Y = date("Y", strtotime('-2 hour'));

$h = date("H", strtotime('-2 hour'));

$filter=$d."%2F".$m."%2F".$Y."%20".$h.".00.00";

$menuItem->setUrl("menu.php?q=(DT~morethan~".$filter."~date11");