Problem: We have a query that is using aliases (r_object_type as cod) that shows documents on D2’s objectlist. We want to use a custom dictionary for those values, but the dictionary values are not applied.
Solution: This mappings are stored in d2_attribute_mapping_config, this table contains a list of repeating attributes that store those mappings:
- type_name: type with the attribute to map
- attr_name: name of the attribute that contains the values to map
- dictionary_name: name of the dictionary with the values to show
- alias_locale_name: auto/language of the values to show
So, this table stores in the repeating attributes the values of the type, attribute and dictionary. This means that you can only map columns that have attribute names.
Solution? Workaround? Append new values to those attributes, indicating the alias you are using, the type used in the “from” clause of the query and the dictionary, and you’re good to go.
Of course, this is completely unsupported by Opentext 🙂