system.kanoa.dashboard.getDashboardWidgets
Description
Returns widgets based on the passed paramatersSyntax
getDashboardWidgets(paramsDict)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes | 
|---|---|---|---|
| dashboardId | int | ||
| dashboardWidgetId | int | ||
| widgetId | int | ||
| breakpointId | int | ||
| enabled | boolean | 
Code Examples
# Example usage
data = system.kanoa.dashboard.getDashboardWidgets({'dashboardWidgetId':9})
print system.kanoa.utilities.convertDatasetRowToJSON(data,0)
> {
    'widgetName': u'Asset OEE Bar Chart', 
    'widgetId': 26, 
    'enabled': True, 
    'dashboardName': u'Asset Downtime', 
    'viewPath': u'kanoa/core/dbp/widgets/analytics/assetOEEBarChart', 
    'breakpointId': 2, 
    'breakpointName': u'Desktop', 
    'widgetDescription': None, 
    'size': None, 
    'dashboardId': 1, 
    'dashboardWidgetId': 9,
    'columnStart': 1, 
    'columnEnd': 8, 
    'rowStart': 2, 
    'rowEnd': 8, 
    'viewParams': u'{\n  "assetPath": null,\n  "oeeMetric": "oee",\n  "showOEEMetricSelector": true,\n"showAssetPath": false\n}'},
    'createdBy': 5, 
    'createdDate': Tue Jul 09 17:55:43 UTC 2024, 
    'changedBy': 5,
    'changedDate': Sun Oct 06 13:49:40 UTC 2024, 
>