ODataTable Chart Widget - How to filter dynamic date
Hi,
is it possible to filter for example objects by "today - 7" and show the result in a Chart by status?
regards,
Jan
Best Answer
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
@Jan_Schulz - It's not possible currently as there's not a relative date function in the odata standard. You might consider raising a feature request for some kind of token functionality in the portal for odata widgets! I would vote for it!
6
Answers
@Jan_Schulz - It's not possible currently as there's not a relative date function in the odata standard. You might consider raising a feature request for some kind of token functionality in the portal for odata widgets! I would vote for it!
You can do something like this which is kind of cool:
"?$filter=month(CreatedDate) eq 09 and year(CreatedDate) eq 2020"
You can add that to the query string on the widget replacing CreatedDate with whatever date property you're looking at.
thank you Justin :-)
@Justin_Workman
Feature Request is created https://community.cireson.com/discussion/5725/odatatable-widget-token-now/p1?new=1