Is it possible to query a set amount of days from a date in the column. For example, we want to only show the projects due in the next 7 days from todays date.
Sorry to disappoint you but unfortunately something like this is not possible to achieve with the plugin built in features at the moment.
For our next update there will be an option to use conditional formatting where you can set some rules if the dates are in the NEXT 7 DAYS from TODAY's date.
Do you know what it would be an option to set a default filtered date? The conditional formatting is nice but not quite the same. Also, can you format the dates differently? Right now they are reading DDMMYYY. Thanks.
Thank you, that fixed what I was looking for in regards to the format. Do you have any word on when the date range would be available or at least a work around in the mean time? I need to show only a certain number of days. So example:
A filtered view would show anything 14 days out plus anything pastdue. Thanks.
Ok no problem, so we have a master table that has all of our projects but we need other tables to display only certain information from the main like a filtered table. The filtered table would only show projects that are due in the next 14 days or past due and not bring back other ones. Currently I have a sql query to the main doc setup which is filtering out the status and columns we don't want but can't figure out how to filter the dates that we'd only like to see.
Thank you for your explanation but like I said in the post below something like this is not possible with the plugin built in features at the moment.
Your idea is quite interesting and I will add it on our TODO list and hopefully we can implement in our next future updates of the plugin as a new feature.
I figured out a solution, in my SQL query I can do the following:
Select * from ExampleDatabase WHERE date_column <= DATE_ADD(NOW(), interval 14 day)
This will bring back information from the database only when the date column is less than 14 days out. This can also be changed to interval 2 month. If you'd like to do do 2 months out.
Also if you'd like to do between two dates, for example between 14 days out and 14 days past due you can do:
WHERE date_column <= DATE_ADD(NOW(), interval 14 day) and date_column >= DATE_ADD(NOW(), interval -14 day)
Hopefully you can introduce a feature into your plugin with these options. :)
Glad to hear that you managed to find a solution and thank you for sharing it.
We will consider something like this as a feature for our next updates.
As for now we added some more placeholders for conditional formatting for date and datetime columns, so maybe that can help you out when working with dates.
Is it possible to query a set amount of days from a date in the column. For example, we want to only show the projects due in the next 7 days from todays date.
Thanks.
HI Chase,
Thank you for your purchase.
Sorry to disappoint you but unfortunately something like this is not possible to achieve with the plugin built in features at the moment.
For our next update there will be an option to use conditional formatting where you can set some rules if the dates are in the NEXT 7 DAYS from TODAY's date.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Do you know what it would be an option to set a default filtered date? The conditional formatting is nice but not quite the same. Also, can you format the dates differently? Right now they are reading DDMMYYY. Thanks.
HI Chase,
You can set the date format in the wpdatatables settings page ( attachment)
There you can find a list of all available date formats in our plugin.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Thank you, that fixed what I was looking for in regards to the format. Do you have any word on when the date range would be available or at least a work around in the mean time? I need to show only a certain number of days. So example:
A filtered view would show anything 14 days out plus anything pastdue. Thanks.
Hi Chase,
Glad to hear that one of the issues are fixed now.
As for your request can you please explain me a little bit more what are you trying to achieve.
Thank you.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Ok no problem, so we have a master table that has all of our projects but we need other tables to display only certain information from the main like a filtered table. The filtered table would only show projects that are due in the next 14 days or past due and not bring back other ones. Currently I have a sql query to the main doc setup which is filtering out the status and columns we don't want but can't figure out how to filter the dates that we'd only like to see.
Hope that helps. Thanks for the help.
Hi Chese,
Thank you for your explanation but like I said in the post below something like this is not possible with the plugin built in features at the moment.
Your idea is quite interesting and I will add it on our TODO list and hopefully we can implement in our next future updates of the plugin as a new feature.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Bogdan,
I figured out a solution, in my SQL query I can do the following:
Select * from ExampleDatabase
WHERE date_column <= DATE_ADD(NOW(), interval 14 day)
This will bring back information from the database only when the date column is less than 14 days out. This can also be changed to interval 2 month. If you'd like to do do 2 months out.
Also if you'd like to do between two dates, for example between 14 days out and 14 days past due you can do:
WHERE date_column <= DATE_ADD(NOW(), interval 14 day) and date_column >= DATE_ADD(NOW(), interval -14 day)
Hopefully you can introduce a feature into your plugin with these options. :)
Chase
HI Chase,
Glad to hear that you managed to find a solution and thank you for sharing it.
We will consider something like this as a feature for our next updates.
As for now we added some more placeholders for conditional formatting for date and datetime columns, so maybe that can help you out when working with dates.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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