Page 1 of 1

Hiding Table View

Posted: 2020-05-21 19:02
by jangle
Hello,

I had the need to hide a table from a group of users, but needed to give them view access the get the DV to stay up after record insert so that they information that is the same could be reused and save as a copy could be used.

The way I did it was (after searching this forum) was to put the following in hooks.

Code: Select all

unction AAR_init(&$options, $memberInfo, &$args) {

		if ($memberInfo['group'] == 'Agencies') 
		{
			$options->AllowCSV = 0; 
			$options->RecordsPerPage = 1;
			$options->HideTableView = ($perm[2]==0 ? 1 : 0);
			
		}
		return TRUE;
Works great… but my quest now is what are the other parameters related to HideTableView = ($perm[2]==0 ? 1 : 0);

Thanks

Jim

Re: Hiding Table View

Posted: 2020-05-21 19:09
by pbottcher
Hi,

as you do not have the $perm defined, the comparison will always result in 1 so the HideTableView will always be set.

Actually, no need for that statement in your setting. Just set it to 1.