Skip to main content

system.kanoa.dashboard.updateUserDashboard(userDashboardInfo, userId)

Updates a user dashboard


Parameters

userDashboardInfo Dictionary

- dashboardIdInteger
- isFavoriteBoolean
- isPrimaryBooleanWhen true, this dashboard is shown on main overview page when the user logs in
- userDashboardIdInteger
- userIdInteger

userId Integer


Returns

# of records modified Integer
message String None if successful


Example

userDashboardInfo = {
"userDashboardId": 12,
"dashboardId": 4,
"userId": 7,
"isPrimary": True,
"isFavorite": False
}
userId = 123
retVal, msg = system.kanoa.dashboard.updateUserDashboard(userDashboardInfo, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'User Dashboard has been updated')