TableData Property

General info

Label

Table Data

Description

Handles an entire table organized in columns and rows. The data can easily (cut, copy and paste) be exchanged with table-oriented data of other software products, e.g. MS Excel.

Data type

String

Default value

"{ \"data\": {}}"

Type

TableSchemaLess

Code

2032

Symbolic name

MODEL_PROP_TABLEDATA

Lua access code

syslib.model.properties.TableData

Available since

1.20

Parent classes

TableHolder

Parent properties

CustomTables

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.
PROP_HAS_DEFAULT The property has a default value as standard.

Examples

Read from or write to the TableData property.

  • Lua

  • C#

-- Read from the TableData
syslib.getvalue("<OBJECT FULL PATH>.CustomOptions.CustomTables.TableData")

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