HMUsecases Property

General info

Label

Usecases

Description

Lists the usecases that apply to this object.

Data type

String

Default value

"{\"meta\":{\"id\":\"urn:id:78:2\"}}"

Type

TableSchemaBound

Code

13070

Symbolic name

MODEL_PROP_HMUSECASES

Lua access code

syslib.model.properties.HMUsecases

Available since

1.80

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.

Schema Definition

Name: HMUsecaseSchema

Description: This schema contains the usecase definitions for an object

Columns
Column Data Type Nullable Unique Default Min Max Description
HMUsecaseGroup String false false Defines the usecase group
HMUsecaseName String false false Defines the usecase name

Examples

Read from or write to the HMUsecases property.

  • Lua

  • C#

-- Read from the HMUsecases
syslib.getvalue("<OBJECT FULL PATH>.HMUsecases")

-- Write to the HMUsecases
syslib.setvalue("<OBJECT FULL PATH>.HMUsecases", '{"meta":{"id":"urn:id:22:2"},"data":{"Input":[1.0,2.0],"Value":["v1","v2"]}}')
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the HMUsecases
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.HMUsecases"));
// Write to the HMUsecases
Result result = sli.WriteValue(sc, new WriteItem('{"meta":{"id":"urn:id:22:2"},"data":{"Input":[1.0,2.0],"Value":["v1","v2"]}}', "<OBJECT FULL PATH>.HMUsecases"));