DataStoreSets Property

General info

Label

Data Store Sets

Description

Maps sets of data stores to logical groups.

Data type

String

Default value

"{\"meta\":{\"id\":\"urn:id:42:17\"}}"

Type

TableSchemaBound

Code

12045

Symbolic name

MODEL_PROP_DATASTORESETS

Lua access code

syslib.model.properties.DataStoreSets

Available since

1.62

Parent properties

DataStoreConfiguration

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: DataStoreMapping

Description: Configuration of logical groups of data stores

Columns
Column Data Type Nullable Unique Default Min Max Description
datastores [Integer] false false One or more selected data store objects
description String false false A textual description for a set of data stores
name String false false A textual label for a set of data stores
primary Integer true false The datastore which archives data when all stores in the set can communicate with each other
rowid Integer false true 32 A unique identifier for a table row

Examples

Read from or write to the DataStoreSets property.

  • Lua

  • C#

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

-- Write to the DataStoreSets
syslib.setvalue("<OBJECT FULL PATH>.DataStoreConfiguration.DataStoreSets", '{"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 DataStoreSets
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.DataStoreConfiguration.DataStoreSets"));
// Write to the DataStoreSets
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>.DataStoreConfiguration.DataStoreSets"));