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
Parameter | Type | Nullable | Description |
---|---|---|---|
None | - | - | This method does not take any parameters. |
Returns
Returns a JSON representation of the newly created parameter type object. Keys and default values:
Key | Default Value |
---|---|
name | null |
viewPath | null |
id | null |
notes | null |
enabled | true |
spare1 | null |
spare2 | null |
spare3 | null |
Code Examples
pt = system.mes.dashboard.newParameterType()
pt['name'] = 'Integer'
pt['viewPath'] = 'Mes/Editors/Integer'
saved = system.mes.dashboard.saveParameterType(pt)
print(saved)