Key-value converter
Convert the value of the source to its corresponding parent value based on a table of key-value pairs. The key-value converter converts heterogeneous data, such as a color to value.
Key-value editor
You can open the key-value editor by selecting
next to the key-value converter in advanced dynamic link editor.
![Edit](/content/dam/dita/en/factorytalk-optix/current/_images/editorpropertiesblack.png/_jcr_content/renditions/original)
![](/content/dam/dita/en/factorytalk-optix/current/_images/KeyValueConverter.png/_jcr_content/renditions/original)
Item | Name | Description |
---|---|---|
![]() | Converter path | The path to the converter. |
![]() | ![]() | Adds a key-value table row. |
![]() | Delete | Deletes the selected key-value table row. |
![]() | Data type | Indicates the data type of keys or values. Select to choose a different data type. |
![]() | Key | A converter key (source value). |
![]() | Value | A value that corresponds with the key in the same row (output value).
TIP:
The value in the first row is the default value. If the source value does not correspond with any converter key, the converter returns the default value.
|
Properties
Property | Description |
---|---|
Mode | The direction of the dynamic link:
|
Source
A variable with a value corresponding to a key.
Output
The value associated with the key in the map.
Example
![](/content/dam/dita/en/factorytalk-optix/current/_images/converter_key_value_representation.png/_jcr_content/renditions/original)
Provide Feedback