Page 1 of 1

Allow Filter button for specific groups only

Posted: 2020-12-06 10:39
by aarlauskas
Hi, is there a way for a Filter button in TV to be available for specific groups only? Thanks

Re: Allow Filter button for specific groups only

Posted: 2020-12-06 11:02
by aarlauskas
Ok I've figured this out.

Re: Allow Filter button for specific groups only

Posted: 2020-12-06 12:01
by jsetzer
And how did you do it?

May I kindly ask you to describe your solution and show some code for the rest of our community.

Thanks in advance,
Jan

Re: Allow Filter button for specific groups only

Posted: 2020-12-06 13:41
by aarlauskas
Of course.

hooks/tablename.php

Code: Select all

	function YOUR_TABLE_NAME_init(&$options, $memberInfo, &$args) {
		
		if ($memberInfo['group'] != 'YOUR GROUP NAME') 
		{
		$options->AllowFilters = 0; 
		}

		return TRUE;
	}

Re: Allow Filter button for specific groups only

Posted: 2020-12-06 13:50
by aarlauskas
Btw, I wish you replied to my other post. Some how it just disappeared of forum completely :D

Have a nice weekend.

Arni.

Re: Allow Filter button for specific groups only

Posted: 2020-12-06 14:14
by jsetzer
Thanks, I have misunderstood your request.

By the way: which other post are you refering to? I have the vague feeling that notification about new posts does not work properly.

Re: Allow Filter button for specific groups only

Posted: 2020-12-06 15:52
by jsetzer
aarlauskas wrote:
2020-12-06 13:50
Btw, I wish you replied to my other post. Some how it just disappeared of forum completely :D
I have searched your posts and I have found a "thanks for nothing" post of you :? . Maybe this is the one you are refering to.

Here is your post including my answers:
viewtopic.php?f=13&t=4042&p=15610#p15574

Just for clarification @all:
If you find bugs in our AppGini Helper Javascript Library, you can send a (meaningful) bugreport to [email protected]. Order number and email address should be included in order to verify your contract status.

Here are our bugreporting-options:
https://appgini.bizzworxx.de/support/su ... ug-report/

How To Report A Bug?

You can speedup the testing and fixing-process by providing a meaningful bugreport.
Some articles about writing bugreports:
http://www.testingjournals.com/bug-repo ... e-testing/
https://www.ministryoftesting.com/dojo/ ... bug-report
https://www.softwaretestinghelp.com/how ... ug-report/
https://www.chiark.greenend.org.uk/~sgtatham/bugs.html
https://deviniti.com/testflo/6-tips-for ... reporting/

It helps us if you send screenshots and code fragments (!). In agreement with Ahmed I kindly ask for your understanding that, although we can provide help with our products and their usage, we cannot provide free training of programming languages and databases nor free debugging of your whole project.