addFilter not working, what did I do wrong?
Posted: 2014-06-04 14:33
I have a check box in my database table items. If the box is checked (=1) I don't want that record displayed or searchable for that matter.
It's the 8th field in the table so I used this code. When I go to the table view all I get is a blank screen.
Any suggestions?
function Items_init(&$options, $memberInfo, &$args){
if(!$_POST['FilterField'][1] && !$_GET['FilterField'][1]){
addFilter(1, 'and', 8, 'not like', '1');
}
return TRUE;
}
It's the 8th field in the table so I used this code. When I go to the table view all I get is a blank screen.
Any suggestions?
function Items_init(&$options, $memberInfo, &$args){
if(!$_POST['FilterField'][1] && !$_GET['FilterField'][1]){
addFilter(1, 'and', 8, 'not like', '1');
}
return TRUE;
}