I have 3 member groups levels db_level1 db_level2 and db_level3
For members of group db_level3 I would like to turn off the print preview in the detail view. It is turned off in the table view.
Not sure how to do this?
Has anyone done this?
Thanks
restrict detail view print option
Re: restrict detail view print option
You can use a tablename_init() hook - see here: http://bigprof.com/appgini/help/advance ... ename_init
with "AllowPrinting" DataList object - see here: http://bigprof.com/appgini/help/advance ... s/DataList
with "AllowPrinting" DataList object - see here: http://bigprof.com/appgini/help/advance ... s/DataList
Code: Select all
function tablename_init(&$options, $memberInfo, &$args){
if($memberInfo['group']=='db_level3'){
$options->AllowPrinting=0;
}else{
$options->AllowPrinting=1;
}
return TRUE;
}
Re: restrict detail view print option
Thanks for the help. This worked great for the table view. However I am still at a loss on controlling print view option in the detailed view.
I looked at the DataList Object, but not being a php programmer I am confused!
Cheers
I looked at the DataList Object, but not being a php programmer I am confused!
Cheers