system.kanoa.dashboard.updateMarqueeDisplay(marqueeDisplayInfo, userId)
Updates a marquee display
Parameters
marqueeDisplayInfo Dictionary
| - enabled | Boolean | |
| - location | String | |
| - marqueeDisplayId | Integer | |
| - marqueeId | Integer | |
| - screenName | String | |
| - siteCode | String | |
| - theme | String | i.e. 'kanoa dark' |
userId Integer: Id of user executing the function
Returns
# of records modified Integer
message String None if success
Example
marqueeDisplayInfo = {
"marqueeDisplayId": 1,
"marqueeId": 12,
"siteCode": 'Texas',
"location": 'Break Room',
"screenName": 'TV1',
"enabled": True
}
userId = 123
marqueeDisplayId, msg = system.kanoa.dashboard.updateMarqueeDisplay(marqueeDisplayInfo, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Marquee display has been updated')