Skip to main content

system.kanoa.dashboard.deleteDashboard

Description

Deletes a dashboard.

Syntax

deleteDashboard(dashboardId, userId)

Parameters:
  • dashboardId (int)
  • userId (int): User ID

  • Returns:
  • number of records modified (int)
  • msg (string): error message, None if successful
  • Code Examples

    # Example usage
    userId = 123
    dashboardId = 4
    retVal, msg = system.kanoa.dashboard.deleteDashboard(dashboardId, userId)
    if msg: system.perspective.sendMessage('showFailerToast', msg)
    else: system.perspective.sendMessage('showSuccessfulToast', 'Dashboard has been deleted')