Using Translations in Fabric

Translations can be used in the Table Population of an LU table, a Reference table or a Parser Map when a specific set of Data Transformation rules is required. Translations can also be used in any Fabric Project functions or Web Services.

Click for more information about Translations – Code Examples.

How Do I Add a Translation to a Table Population?

  1. Go to Project Tree > Logical Units > [LU Name].
  2. Click Tables > [Table Name] > [Table Population]
  3. Click the Objects tab in the right panel of the Table Population working area.
  4. Click Translations and then click the Translation in the list. The list includes the Translation objects defined under the selected LU and under the Shared Objects.
  5. Drag the Translation to the working area.
  6. Connect the Translation’s Input and Output fields to the Table Columns, as follows:
    • Translation Input fields can be either connected to the Source Object or other Fabric objects, attached to the Table Population like functions or Lookups.
    • Translation Output fields can be connected either to the Target Object or other Fabric objects, attached to the Table Population like functions or Lookups.

Click for more information about Creating a New Translation.

Click for more information about Table Population Transformation Objects.

How Do I Add a Translation to a Parser Map?

  1. Go to Project Tree > Logical Units > [LU Name].
  2. Click Parsers > [Parser Map].
  3. Click the Objects tab in the right panel of the Parser Map working area.
  4. Click Translations and then click the Translation in the list.
  5. Drag the Translation into the working area.
  6. Connect the Translation’s Input and the Output fields.
    • Translation Input fields can be either connected to the Source Object, other Fabric objects or attached to the map like functions or lookups.
    • Translation Output fields can be connected either to the Target Object, other Fabric objects or attached to the map like functions or lookups.

How Do I Use a Translation in a Java File in Fabric?

Translations can be used in any Project functions defined in Fabric.

  • Translations used in an LU function can be defined either on an Logical Unit or on a Shared Objects level.
  • Translations used in Web Services must be defined on a Shared Objects level. When editing a Java file, two built-in functions are available and displayed in the Objects tab.

Built-in Function

Description

getTranslationValues

Format

Map <String><String>(String translationName, Object[] inputs)

Description

Returns the Translation’s Output parameters based on the Input parameter/s.

Input

Translation input fields.

Output

Translation output fields.

getTranslationsData

Format

Map<String,Map<String,String>>(String translationName)

Description

Returns full Translation data based on the Translation name.

Input

Translation name.

Output

Translation data.

Click for more information about Translations – Code Examples.

Previous

Using Translations in Fabric

Translations can be used in the Table Population of an LU table, a Reference table or a Parser Map when a specific set of Data Transformation rules is required. Translations can also be used in any Fabric Project functions or Web Services.

Click for more information about Translations – Code Examples.

How Do I Add a Translation to a Table Population?

  1. Go to Project Tree > Logical Units > [LU Name].
  2. Click Tables > [Table Name] > [Table Population]
  3. Click the Objects tab in the right panel of the Table Population working area.
  4. Click Translations and then click the Translation in the list. The list includes the Translation objects defined under the selected LU and under the Shared Objects.
  5. Drag the Translation to the working area.
  6. Connect the Translation’s Input and Output fields to the Table Columns, as follows:
    • Translation Input fields can be either connected to the Source Object or other Fabric objects, attached to the Table Population like functions or Lookups.
    • Translation Output fields can be connected either to the Target Object or other Fabric objects, attached to the Table Population like functions or Lookups.

Click for more information about Creating a New Translation.

Click for more information about Table Population Transformation Objects.

How Do I Add a Translation to a Parser Map?

  1. Go to Project Tree > Logical Units > [LU Name].
  2. Click Parsers > [Parser Map].
  3. Click the Objects tab in the right panel of the Parser Map working area.
  4. Click Translations and then click the Translation in the list.
  5. Drag the Translation into the working area.
  6. Connect the Translation’s Input and the Output fields.
    • Translation Input fields can be either connected to the Source Object, other Fabric objects or attached to the map like functions or lookups.
    • Translation Output fields can be connected either to the Target Object, other Fabric objects or attached to the map like functions or lookups.

How Do I Use a Translation in a Java File in Fabric?

Translations can be used in any Project functions defined in Fabric.

  • Translations used in an LU function can be defined either on an Logical Unit or on a Shared Objects level.
  • Translations used in Web Services must be defined on a Shared Objects level. When editing a Java file, two built-in functions are available and displayed in the Objects tab.

Built-in Function

Description

getTranslationValues

Format

Map <String><String>(String translationName, Object[] inputs)

Description

Returns the Translation’s Output parameters based on the Input parameter/s.

Input

Translation input fields.

Output

Translation output fields.

getTranslationsData

Format

Map<String,Map<String,String>>(String translationName)

Description

Returns full Translation data based on the Translation name.

Input

Translation name.

Output

Translation data.

Click for more information about Translations – Code Examples.

Previous