system.kanoa.dashboard.getWidgets(paramsDict)
Gets the requested widgets. Dictionary keys are optional.
Parameters
paramsDict Dictionary
| - enabled | Boolean | |
| - viewPath | String | path of the view connected with this widget |
| - widgetCategoryId | Integer | |
| - widgetCategoryName | String | |
| - widgetId | Integer | Widget Id |
| - widgetName | String | |
| - widgetPath | String |
Returns
widgetData pyDataset
Example
widgets = system.kanoa.dashboard.getWidgets({'widgetId':36})
print system.kanoa.utilities.convertDatasetRowToJSON(widgets, 0)
> {
'widgetName': u'Asset Downtime Bar Chart',
'widgetCategoryName': u'Analytics',
'widgetId': 36,
'widgetCategoryId': 7,
'enabled': 1,
'viewPath': u'kanoa/core/dbp/widgets/analytics/assetDowntimeBarChart',
'path': u'Analytics\\Asset Downtime Bar Chart',
'changedDate': None,
'widgetDescription': u'Display Downtime By Asset',
'createdDate': Mon Jul 15 00:00:00 UTC 2024,
'createdBy': 5,
'changedBy': None,
'sortOrder': None,
'viewParams': u'{"assetPath": None,"downtimeBy": "Interval","showDowntimeBySelector": True}'
}
>