Lookup table and relationship attributes
Within the spec screen, you can select the lookup table and the relationship type attributes. Additional facets are available to control the display of these type of attributes.
Lookup table type attributes
This section focuses on the lookup table value display format type and the lookup table value display attribute type. These two types are optional facets available only for the lookup table type attributes.- File Spec
- Primary Spec
- Lookup Spec
- Secondary Spec
- Sub-Spec
- Script Input Spec
Primary
Key
format.- Primary Key
- Display Attribute
- Primary Key > Display Attribute
- Lookup Table Name > Primary Key
- Lookup Table Name > Display Attribute
- Lookup Table Name > Primary Key > Display Attribute
Lookup table value display attribute: This attribute enables you to pick any attribute of the selected lookup table as the display attribute. A drop-down of all the attributes of the selected lookup table is displayed on the spec screen. You can select an attribute as the display attribute from this drop down. The first attribute in the drop-down is selected by default when the facet is added. The attribute can be the primary key of the lookup table as well. The lookup table attribute can be indexed or non-indexed.
Relationship type attributes
The relationship value display format attribute enables you to select the display format of the relationship attribute values. This optional attribute is available only for relationship type attributes. After an import, the value of the relationship attribute is displayed only for items.Catalog Name > Primary Key > Display
Attribute
format. Display Attribute
is
the display attribute of the selected target catalog for the relationship
attribute.- Primary Key
- Display Attribute
- Primary Key > Display Attribute
- Catalog Name > Primary Key
- Catalog Name > Display Attribute
- Catalog Name > Primary Key > Display Attribute
- File Spec
- Primary Spec
- Lookup Spec
- Secondary Spec
- Sub-Spec
- Script Input Spec
Relationship type attributes allow users to save references in a given item to other items.
For example, lets say we want Item A in Catalog A to contain a reference to Item B in Catalog B. In order to contain this reference, you have to create a relationship attribute in a spec implemented by Item A and populate that attribute in item A with a reference to item B.
- Select the primary key of the related item from the key picker, or the display value of the related item from the display picker in the top section of the editor. You can choose the value from the dropdown, or type part of the value in the text field and select the desired value from the list of matches offered. If you do not select a valid value before clicking OK, you are prompted to choose a valid value. You can use click Cancel to exit out of the relationship editor without choosing a valid value. When you type in the entire matching value, verify that your value selections become visible before you click OK. This is to ensure that the values are populated correctly.
- Browse for the related item in the hierarchy tree in the Search and Browse for items section.
- Search for related items using the search fields in the Search and Browse for items section and choose the desired related item from the search results.