Setting a Custom Default Filter for "Records to Display" in Table View

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
joshianjvj83
Posts: 23
Joined: 2024-05-12 10:13

Setting a Custom Default Filter for "Records to Display" in Table View

Post by joshianjvj83 » 2025-03-24 03:42

Hi everyone,

I’m looking for a way to set a custom filter in my database so that when a user opens Table A, they only see their own records by default. However, when they access Table B, it should display all records for everyone. additionally, any help on creating other types of custom filter is welcome.

I’d really appreciate any guidance, Thanks in advance for your help!

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

Re: Setting a Custom Default Filter for "Records to Display" in Table View

Post by pbottcher » 2025-03-24 06:52

Hi,

you can have a look at the _init function for each table. Here you can modify the $options->QueryWhere according to you needs.
see e.g. https://forums.appgini.com/phpbb/viewtopic.php?t=5359
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