Skip to main content

system.mes.dashboard.newParameterType

Description

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

Syntax

system.mes.dashboard.newParameterType()

Parameters

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

Returns

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

KeyDefault Value
namenull
viewPathnull
idnull
notesnull
enabledtrue
spare1null
spare2null
spare3null

Code Examples

pt = system.mes.dashboard.newParameterType()
pt['name'] = 'Integer'
pt['viewPath'] = 'Mes/Editors/Integer'
saved = system.mes.dashboard.saveParameterType(pt)
print(saved)