If I understood you correctly, you'd like to have one table, and then pass different URLs to the same table, which would filter by Datetime through URL, correct?
If that is true, you need to see what's the column's number and then assign the filter to it through url. For example, my Datetime column is #6, so my pre-defined filter looks like this:
http://localhost/wpdt-2.5/table30/?wdt_column_filter[6]=15.07.2019 12:00 AM|16.07.2019 12:00 AM
And here's the result:
Please note that the URL will automatically change to this:
- It adds "%20" for every space that's needed between the date and the time, and the time and "AM". You can add that yourself, but I showed you the URL without it to avoid confusion.
Hi!
How can I define an URL link to prefilter a datetime column for a datetime range?
Or how can I define the from-to values for a column for prefiltering?
Thank you
Hello Plasmid69.
If I understood you correctly, you'd like to have one table, and then pass different URLs to the same table, which would filter by Datetime through URL, correct?
If that is true, you need to see what's the column's number and then assign the filter to it through url. For example, my Datetime column is #6, so my pre-defined filter looks like this:
And here's the result:
Please note that the URL will automatically change to this:
- It adds "%20" for every space that's needed between the date and the time, and the time and "AM". You can add that yourself, but I showed you the URL without it to avoid confusion.
I hope this helps.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Aleksandar !
Your Advice is fine! This is what I was looking for.
Thanx
You're welcome Plasmid69.
Glad I could help.
If you have any further questions or issues, please feel free to reach out to us, we'll gladly help.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables