Remove unneeded years for date range

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
utony
Veteran Member
Posts: 113
Joined: 2020-04-03 18:37

Remove unneeded years for date range

Post by utony » 2024-07-29 00:36

I am looking for a global option to remove the date range from 1900 to 2020, from date pickers. Having dates going back so far is a nuance. Does anyone know a way to remove all dates for all tables that you date range, removing 1900 to 2020???

Thanks!

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

Re: Remove unneeded years for date range

Post by pbottcher » 2024-07-29 20:30

Hi,

from my knowledge, there is no such global option.
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.

utony
Veteran Member
Posts: 113
Joined: 2020-04-03 18:37

Re: Remove unneeded years for date range

Post by utony » 2024-07-30 00:58

is there a table by table option?

utony
Veteran Member
Posts: 113
Joined: 2020-04-03 18:37

Re: Remove unneeded years for date range

Post by utony » 2024-07-30 00:59

If so, what file do I mod?

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

Re: Remove unneeded years for date range

Post by pbottcher » 2024-08-03 21:17

Hi,

what you can try is to add to the __global.php
define('TABLENAME.FIELDNAME.MinYear', STARTYEAR);

where
TABLENAME is the name where you have the datefield
FIELDNAME is the name of the field you want to modify
STARTYEAR is the year you want to start with.

Hope that helps.
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.

utony
Veteran Member
Posts: 113
Joined: 2020-04-03 18:37

Re: Remove unneeded years for date range

Post by utony » 2024-08-04 13:26

Awesome! Thanks.

Post Reply