Skip to main content

system.kanoa.dashboard.updateMarqueeDisplay(marqueeDisplayInfo, userId)

Updates a marquee display


Parameters​

marqueeDisplayInfo Dictionary

- enabledBoolean
- locationString
- marqueeDisplayIdInteger
- marqueeIdInteger
- screenNameString
- siteCodeString
- themeStringi.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')