Skip to main content

system.mes.dashboard.newWidgetParameter

Description

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

Syntax

system.mes.dashboard.newWidgetParameter()

Parameters

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

Returns

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

KeyDefault Value
widgetIdnull
parameterTypeIdnull
namenull
descriptionnull
parameterKeynull
defaultValuenull
configurationnull
sortOrder0
idnull
notesnull
enabledtrue
spare1null
spare2null
spare3null

Code Examples

p = system.mes.dashboard.newWidgetParameter()
p['name'] = 'Chart Title'
p['parameterKey'] = 'title'
print(p)