Skip to main content

system.mes.dashboard.getWidgetParameter

Description

Retrieves a Dashboard Widget Parameter by its ID.

Syntax

system.mes.dashboard.getWidgetParameter(parameterId)

Parameters

ParameterTypeNullableDescription
parameterIdString (ULID)FalseThe ID of the widget parameter to retrieve.

Returns

Returns a JSON representation of the widget parameter, or nothing if not found.

NameTypeDescription
widgetIdString (ULID)The ULID of the widget this parameter belongs to.
parameterTypeIdString (ULID)The ULID of the parameter type used by this parameter.
nameStringThe display label for the parameter.
descriptionStringDescription of what the parameter controls.
parameterKeyStringThe key used in the widget's view parameters.
defaultValueStringJSON string of the default value.
configurationStringJSON string configuring the parameter editor.
sortOrderIntegerDetermines display order in the widget configuration UI.
idString (ULID)The ULID of the widget parameter.
notesStringNotes related to the widget parameter.
enabledBooleanIndicates if the widget parameter is active and enabled.
spare1StringAdditional field for user-defined context.
spare2StringAdditional field for user-defined context.
spare3StringAdditional field for user-defined context.

Code Examples

param = system.mes.dashboard.getWidgetParameter('01JAP8RJBN-8ZTPXSGY-J9GSDPE1')
print(param)