Skip to main content

system.kanoa.dashboard.getWidgetCategory

This function is part of the kanoaCore module

Description

Gets the requested widget categories

Syntax

getWidgetCategory(paramsDict, userId)
  • Parameters
      paramsDict (dict)
      - widgetCategoryId (int)
      - widgetCategoryName (string)
      - enabled (boolean)
  • Returns
      dataset
  • Code Examples

    # Example usage
    widgetCategories = system.kanoa.dashboard.getWidgetCategory({'widgetCategoryName': 'Analytics'})
    print system.kanoa.utilities.convertDatasetRowToJSON(widgetCategories, 0)
    > {
    'widgetCategoryDescription': None,
    'widgetCategoryName': u'Analytics',
    'widgetCategoryId': 7,
    'enabled': True,
    'changedDate': None,
    'createdDate': Tue Jul 09 00:00:00 UTC 2024,
    'createdBy': 5,
    'changedBy': None
    }
    >