Show filering
Posted: 2019-04-02 21:08
Hello All,
Using AppGini 5.75 in and working in MyTable.php in Hooks.
I am trying to limit the ability to filter tables by position. I have added Position as memberInfo['custom'][1]. The problem I have is being able to add multiple positions. I used the code below in the function MyTable_init(&$options, $memberInfo, &$args){
if($memberInfo['custom'][1]== 'Manager'){
$options->AllowFilters=1;
}else{
$options->AllowFilters=0;
}
and tried to include multiple positions as the variables to if($memberInfo['custom'][1]== 'Manager') something like if($memberInfo['custom'][1]== 'Manager' or 'Director') and other variations. Any input is appreciated.
Using AppGini 5.75 in and working in MyTable.php in Hooks.
I am trying to limit the ability to filter tables by position. I have added Position as memberInfo['custom'][1]. The problem I have is being able to add multiple positions. I used the code below in the function MyTable_init(&$options, $memberInfo, &$args){
if($memberInfo['custom'][1]== 'Manager'){
$options->AllowFilters=1;
}else{
$options->AllowFilters=0;
}
and tried to include multiple positions as the variables to if($memberInfo['custom'][1]== 'Manager') something like if($memberInfo['custom'][1]== 'Manager' or 'Director') and other variations. Any input is appreciated.