Hiding Table View

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Hiding Table View

Post by jangle » 2020-05-21 19:02

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

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Hiding Table View

Post by pbottcher » 2020-05-21 19:09

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.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

Post Reply