Hello community,
Here with a query I didn't find an answer from the Reltio docs. So, wanted to check if anyone has implemented the below logic.
I have an entity. Let's call MyEntity1. This has a nested attribute which in turn contains a reference attribute.
Now, how do I use the value of this reference value as dataLabelPattern? Or, I can also use any of the referencedAttributes of this reference attribute as a parameter for my dataLabelPattern of my nested attribute.
Here is an example.
{
"label": "Primary Attributes",
"name": "primaryAttributes",
"type": "Nested",
...
"dataLabelPattern": "{type}",
"uri": "configuration/entityTypes/MyEntity1/attributes/primaryAttributes",
"attributes": [
{
"label": "Type",
"name": "type",
"type": "Reference",
...
"uri": "configuration/entityTypes/MyEntity1/attributes/primaryAttributes/attributes/type",
"dataLabelPattern": "{name}",
"referencedAttributeURIs": [
"configuration/entityTypes/MyEntity2/attributes/name",
],
"referencedEntityTypeURI": "configuration/entityTypes/MyEntity2",
"relationshipTypeURI": "configuration/relationTypes/PrimaryAttributes"
},
{
"label": "Value",
"name": "value",
"type": "Simple",
...
},
{
"label": "Domain",
"name": "domain",
"type": "Simple",
...
}
]
}
"dataLabelPattern": "{type}" is where I have to try using the value of the reference attribute or any attribute that is mentioned in the referencedAttributeURIs. The "dataLabelPattern": "{name}" is populating as expected but "dataLabelPattern": "{type}" is not.
Kindly throw some light on how to achieve this.
------------------------------
Nidheesh R
------------------------------