Skip to main content

system.kanoa.dashboard.getWidgets(paramsDict)

Gets the requested widgets. Dictionary keys are optional.


Parameters

paramsDict Dictionary

- enabledBoolean
- viewPathStringpath of the view connected with this widget
- widgetCategoryIdInteger
- widgetCategoryNameString
- widgetIdIntegerWidget Id
- widgetNameString
- widgetPathString

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}'
}
>