Skip to main content

system.kanoa.dashboard.deleteDashboardWidget(dashboardWidgetId, userId)

Deletes a dashboards widget


Parameters​

dashboardWidgetId Integer: Id of the dashboard widget to delete
userId Integer: Id of user executing the function


Returns​

# of records modified Integer


Example​

userId = 123
dashboardWidgetId = 4
retVal, msg = system.kanoa.dashboard.deleteDashboardWidget(dashboardWidgetId, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Dashboard widget has been deleted')