Allow Filter button for specific groups only

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Allow Filter button for specific groups only

Post by aarlauskas » 2020-12-06 10:39

Hi, is there a way for a Filter button in TV to be available for specific groups only? Thanks

User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Re: Allow Filter button for specific groups only

Post by aarlauskas » 2020-12-06 11:02

Ok I've figured this out.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1814
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Allow Filter button for specific groups only

Post by jsetzer » 2020-12-06 12:01

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
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Re: Allow Filter button for specific groups only

Post by aarlauskas » 2020-12-06 13:41

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;
	}

User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Re: Allow Filter button for specific groups only

Post by aarlauskas » 2020-12-06 13:50

Btw, I wish you replied to my other post. Some how it just disappeared of forum completely :D

Have a nice weekend.

Arni.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1814
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Allow Filter button for specific groups only

Post by jsetzer » 2020-12-06 14:14

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.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1814
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Allow Filter button for specific groups only

Post by jsetzer » 2020-12-06 15:52

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.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply