Skip to main content

system.kanoa.dashboard.updateMarqueeDashboard

This function is part of the kanoaCore module

Description

updates a marquee dashboard.

Syntax

updateMarqueeDashboard(marqueeDashboardInfo, userId)
  • Parameters
      marqueeDashboardInfo (dict)
      - marqueeDashboardId (int)
      - marqueeId (int)
      - dashboardId (int)
      - duration (int): Duration to display in seconds
      - sortOrder (int): The order in which this dashboard should be dispalyed
      int userId - User ID
  • Returns
      retVal (int): # of records modified
      msg (sring): error message, None if successful
  • Code Examples

    # Example usage
    marqueeDashboardInfo = {
    "marqueeDashboardId": 12,
    "marqueeId": 12,
    "dashboardId": 4,
    "duration": 30,
    "sortOrder": 3
    }
    userId = 123
    marqueeDashboardId, msg = system.kanoa.dashboard.updateMarqueeDashboard(marqueeDashboardInfo, userId)
    if msg: system.perspective.sendMessage('showFailerToast', msg)
    else: system.perspective.sendMessage('showSuccessfulToast', 'Marquee dashboard has been updated')