Hi Nidheesh ,
Thanks for your question.
Conditional attribute can be a reference attribute - the statement means that within the country entity - you can show/hide the ref attribute "State" conditionally.
But zip5 or zip available becomes sub attributes of reference attributes when setting it from Country - that is the reason it is not respecting that condition while creating from country entity.
We understand the requirement and take this as a future enhancement ( if feasible). Please submit an idea and we will review the possibility to add this capability.
Regards,
------------------------------
Abhradeep Sengupta
------------------------------
Original Message:
Sent: 06-28-2024 03:55
From: Nidheesh Radhakrishnan
Subject: RuleBasedAttributes not working for reference
Hello experts,
We are trying to implement the ruleBasedAttributes feature for our reference attribute as well.
Example: We have an entity type called State which is one of the reference attributes inside another entity type called Country. The State has a ruleBasedAttributes definition which shows ZipCode attribute only when the Is ZipCode Available attribute is set to True.
Now, this is functioning well when creating the State profile directly. But not working when trying to create from the Country entity type.
I see the below point in Reltio documentation. But is there any other approach to do this?
A conditional attribute can be a simple, nested, or reference attribute. Sub attributes of nested and reference attributes can't be used as conditional attributes.
A conditional attribute must belong to the same entity as the control attribute.
------------------------------
Nidheesh Radhakrishnan
MDM Developer
Novartis
------------------------------