Skip to main content

system.kanoa.dashboard.updateScreenDashboard(screenDashboardInfo, userId)

Updates a screen dashboard


Parameters

screenDashboardInfo Dictionary

- assetIdInteger
- dashboardIdInteger
- screenDashboardIdInteger
- screenNameString

userId Integer


Returns

# of records modified Integer
message String None if successful


Example

screenDashboardInfo = {
"dashboardId": 4,
"assetId": 901,
"screenName": 'Asset Operation
}
userId = 123
retVal, msg = system.kanoa.dashboard.updateUserDashboard(screenDashboardInfo, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Screen Dashboard has been saved')