system.kanoa.dashboard.updateScreenDashboard(screenDashboardInfo, userId)
Updates a screen dashboard
Parameters
screenDashboardInfo Dictionary
| - assetId | Integer | |
| - dashboardId | Integer | |
| - screenDashboardId | Integer | |
| - screenName | String |
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')