We have pretty obvious "grid_date_range_filter" filter, that allows to enter date interval (from and to date) to filter grid records by.
I think, that we could make interval selection easier by placing dropdown above date fields with such possible values:
- empty value
- today
- yesterday
- 1 week
- 1 month
When appropriate value is selected, then from and to dates are automatically prefilled without a need to use date picker at all.
I have 2 questions about that:
- do we need such an ability?
- how words "1 week" and "1 month" can be interpreted?
For example "1 week" could be:
- from today till "today minus 7 days"
- from yesterday till "today minus 7 days"
- from "get calendar week of today minus 1 week" to "get calendar week from today minus 2 weeks"
For example "1 month" could be:
- from today till "today minus 30 days"
- from yesterday till "today minus 30 days"
- from "get calendar month of today minus 1 month" to "get calendar week from today minus 2 months"
Maybe meaning changes based on filter usage:
- one meaning for reports
- other meaning for regular grids
Any ideas?
--
Best Regards,
http://www.in-portal.com
http://www.alex-time.com