Product/components used and version/fix level:
Frontend 1018.0.271
Backend 1018.0.457
Detailed explanation of the problem:
I want to implement dashboard time context functionality with realtime data. I also want to have the possibility to add custom ranges that were defined by myself.
Instead of having these options presented above (picture on the right), I want to add my own date ranges. As an example, I have defined a “last 1 hour” date range and I use event subcription functionality (EventRealtimeService
) to keep my widgets up to date. My implementation gives me the possibility to subscribe to events and updates the “last 1 hour” range, so there is no need to refresh the page to get the current events.
My goal is to have similar functionality, but as dashboard time context to set a custom date range with realtime data for all of the widgets on the dashboard at once.
I’ve found 3 documents about dashboard time context:
- Release 1018:
- Releas 2024:
- The newest release (?) so also 2024? In the url there is no specified release of Cumulocity, but there is an option to set realtime data, which I also want to achieve.
- Which release contains the functionality to add realtime data option to the dashboard time context?
- Is there any implemented example of realtime data option in the dashboard time context?
- How can I define my own custom ranges?
- Is there a way to pass a parameter with a selected date range instead of passing the
date: [Date, Date]
parameter to the widget? Now when I select an option from the custom range selector - for example “Last minute” - the parameterdate: ["2024-10-28T12:43:44.769Z", "2024-10-28T12:44:44.769Z"]
is passed to the widget. I prefer to pass information to my widget about custom range selection to have an opportunity to subscribe to events and keep my widget up to date with live data.
Question related to a free trial, or to a production (customer) instance?
Question is related to production (customer) instance.