Hi guys,
In our older cockpit-versions (e.g. 1021.22.99), when creating (programming) a custom cockpit dashboard using c8y-widgets-dashboard the global time context selection in the dashboard top navigation shows up while putting a widget with the time selctor properties to it.
Widget:
{
"componentId": "Data points table",
"classes": {
"data-points-table": true,
"card-dashboard": true,
"panel-title-regular": true,
"card": true
},
"_x": 0,
"_y": 0,
"id": "06522756-0189-46ef-a606-9079b691e984",
"title": "Data points table",
"_width": 8,
"config": {
"refreshOption": "live",
"datapoints": [
{
"fragment": "AIn",
"unit": "",
"color": "#324123",
"series": "Cp_CgIncl",
"lineType": "line",
"__active": true,
"__template": null,
"label": "AIn → Cp_CgIncl",
"renderType": "min",
"yAxisType": null,
"__target": {
"name": "Test-Device",
"id": "52199198112"
}
}
],
"displaySettings": {
"globalAutoRefreshContext": true,
"globalTimeContext": true,
"globalAggregationContext": true,
"globalRealtimeContext": false
},
"dateTimeContext": {
"dateTo": "2025-12-11T19:02:59.000Z",
"interval": "hours",
"dateFrom": "2025-12-11T18:02:59.000Z"
},
"decimalPlaces": 2,
"refreshInterval": 30000,
"isAutoRefreshEnabled": true,
"aggregation": null,
"displayMode": "dashboard"
},
"_height": 4
}
Now, using the current new websdk version 1023.9.0, the global time context selection in dashboard top navigation does not show up anymore …
Is there kind of a new logic behind that or am I missing a new Import or properties in my widgets? Does anybody know what changed here?
HTML-code of my dashboard:
<c8y-widgets-dashboard
[context]="context"
[widgets]="displayWidgets"
[settings]="{
isLoading: false,
isDisabled: false,
canDelete: false,
translateWidgetTitle: false,
allowFullscreen: false,
onEditDashboard: true,
title: false,
canCopy: false
}">
</c8y-widgets-dashboard>
The variable displayWidgets is set dynamically in my component.ts (see json above). The json is copied from a test-dashboard (current version) where everythink works fine.
Widget shows up, but no dashboard time selector ![]()
Thanks in advance
