N
|
Nir Frumer 2/5/2020 |
Hello, I'm trying to set a default date range for recors on a list page. I use the following code in "After table initialized" of the "news" table to get records of the last 5 days: FIRST BUG:
|
S
|
silk author 2/6/2020 |
hi I would try doing it as a tab on the list page 1st tab "last 5 days", 2nd tab "All" hope it helps, Nir.
|
![]() |
lefty 2/6/2020 |
Thanks for the suggestion, but I'm doing it to speed up list page loading (it's a huge DB) and the user must be able to change the date directly on the list page to avoid loading all records
|
S
|
silk author 2/6/2020 |
If MySQL and you don't want tabs , create a custom view of the news table and in query designer add - WHERE clause. , then use your main table for all records. You can add indexes to your news table in PHPmyadmin to speed up large data. If Sql server then. WHERE[font="Consolas,"][size="2"] newsdate BETWEEN[/size]
|