Skip to main content

system.mes.dashboard.newDashboard

Description

Generates an empty non-persisted Dashboard object to provide the structure required by the API to save a new record into the database. Use with saveDashboard.

Syntax

system.mes.dashboard.newDashboard()

Parameters

ParameterTypeNullableDescription
None--This method does not take any parameters.

Returns

Returns a JSON representation of the newly created dashboard object. Keys and default values:

KeyDefault Value
namenull
urlnull
isPublicfalse
usernamenull
iconPath"material/dashboard"
packtrue
gridSTRETCH
rowCount10
columnCount10
rowGutterSize8
columnGutterSize8
instancesJsonnull
idnull
notesnull
enabledtrue
spare1null
spare2null
spare3null

Code Examples

db = system.mes.dashboard.newDashboard()
db['name'] = 'Production Overview'
db['url'] = 'production-overview'
db['instancesJson'] = '[]'
print(db)