How to Create an Imported Attribute?

Imported attributes enable the use of values of required attributes of linked MDM dictionaries as attributes of the current MDM dictionary.

Consider an example of the Goods MDM dictionary in the desktop application, one of dictionary attributes is the attribute from the Stuff linked MDM dictionary. The attribute of the Stuff MDM dictionary, in its turn, is the imported attribute from the Units linked MDM dictionary.

Step 1. Create the Units Dictionary

Create the Units dictionary. Add the Measure general attribute of string data type to it.

Fill the dictionary with elements:

Step 2. Create the Stuff Dictionary

Create the Stuff dictionary. Add the following elements to the dictionary:

Fill the dictionary with elements. To do this, in the Dictionary Element Properties dialog box:

  1. Enter staff name.

  2. Select the unit used for this stuff type in the Unit drop-down list.

After the value is set to the Units reference attribute, the value is automatically set for the Measure imported attribute, that corresponds to the value in the linked dictionary by the attribute that was defined on creating the imported attribute as Source Attribute.

Value of the Measure imported attribute is displayed in grey color in the Dictionary Element Properties dialog box:

On opening the Staff MDM dictionary the element tree displays the values for the imported attribute that correspond to values in the linked dictionary:

Step 3. Create the Goods Dictionary

Create the Goods dictionary. Add the following elements to the dictionary:

The Unit and Measure attributes are imported attributes of the Units linked MDM dictionary.

Fill the dictionary with elements. To do this, in the Dictionary Element Properties dialog box:

  1. Enter name of good.

  2. Select the stuff type used for this type of good in the Stuff drop-down list.

After the value is set to the Stuff reference attribute, the values are automatically set for the Unit and Measure imported attributes, that correspond to the values in the linked dictionary by the attribute that was defined on creating the imported attribute as Source Attribute. Consider that for the Unit attribute in the element card and in the output dictionary there will be displayed only the key corresponding to this attribute in the Units dictionary.

Values of the Unit and Measure imported attributes are displayed in grey color in the Dictionary Element Properties dialog box:

On opening the Goods MDM dictionary the element tree displays the values for the imported attributes that correspond to values in the linked dictionary:

Conclusion

After executing these steps three MDM dictionaries are created and set up in the way that:

See also:

Questions and Answers