FieldMappingTable Property

General info

Label

Mapping

Description

Raw field values will be translated according to the mapping table

Data type

String

Default value

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

Type

TableSchemaBound

Code

2978

Symbolic name

MODEL_PROP_FIELDMAPPINGTABLE

Lua access code

inmation.model.properties.FieldMappingTable

Available since

1.36.2.5196

Parent properties

FieldMappingTableParameter

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

Description: Configuration of Field Mappings

Columns
Column Data Type Nullable Default Description
SourceFieldValue string true
TargetFieldValue string true

Examples

Read from or write to the FieldMappingTable property.

  • Lua

  • C#

-- Read from the FieldMappingTable
inmation.getvalue("<OBJECT FULL PATH>.BatchCharacteristics.FieldMappingTableParameter.FieldMappingTable")

-- Write to the FieldMappingTable
inmation.setvalue("<OBJECT FULL PATH>.BatchCharacteristics.FieldMappingTableParameter.FieldMappingTable", '{"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 = "so", Password = "inmation" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the FieldMappingTable
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.BatchCharacteristics.FieldMappingTableParameter.FieldMappingTable"));
// Write to the FieldMappingTable
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>.BatchCharacteristics.FieldMappingTableParameter.FieldMappingTable"));