Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/24/2024 02:21 AM
Hi Team -
I have the below requirement with Dynamic attribute (Enum) for an application
Parent Attribute 1 - values- A and B
Parent Attribute 2 - values - C and D
Child Attribute - values - E and F
Condition 1 - When user selects 'A' from parent attribute 1, then I should hide the child attribute.
Condition 2 - When user selects 'C' from parent attribute 2, then I should show 'E' from child attribute and when user selects 'D' from parent attribute 2, then I should show 'F' from child attribute. So in a way, both Parent attribute 1 and Parent attribute 2 should decide actions for the child attribute.
Please can someone advise how this can be achieved ?
Thank you
Solved! Go to Solution.
05/24/2024 06:35 AM
Hi @shivmano ,
This can be achievable.
Condition 1 - When user selects 'A' from parent attribute 1, then I should hide the child attribute.
DA1: Parent Attribute 1
Attribute | parent1 |
Attribute Type | ENUM |
Value | A,B |
Action String | HIDE###child###A___SHOW###child###B___ |
Condition 2 - When user selects 'C' from parent attribute 2, then I should show 'E' from child attribute and when user selects 'D' from parent attribute 2, then I should show 'F' from child attribute. So in a way, both Parent attribute 1 and Parent attribute 2 should decide actions for the child attribute.
DA2: Parent Attribute 2
Attribute | parent2 |
Attribute Type | ENUM |
Value | C,D |
Action String | SHOW###child###C___SHOW###child###D___ |
What action to perform when Parent attribute changes? | Mapping |
DA3: Child
Attribute | child |
Attribute Type | Single Select From SQL Query |
Value | select case when ${parent2}='C' then 'E' when ${parent2}='D' then 'F' end as ID |
Default Value | select case when ${parent2}='C' then 'E' when ${parent2}='D' then 'F' end as ID |
Parent Attribute | parent2 |
If this helps your question, please consider selecting Accept As Solution and hit Kudos
05/24/2024 11:02 AM
@PremMahadikar - while this is helpful, it does still not meet the requirement I have. As in your screen shot, even though child is supposed to be hidden when parent 1 is 'A', it still shows up when you select any value in parent 2 which should not be the case. If parent 1 is 'A', then it should be hidden no matter what value is selected in parent 2. it should only be shown when I select option 'B' in parent 1 and the parent 2 conditions should then be validated
Any suggestions on this?
05/24/2024 12:20 PM
Even that can be achieved. Please remove the action string in parent2 DA.
The DA which is hidden will still calculate the value.
FYI: Incase you want to use this in workflow.
For reference: https://forums.saviynt.com/t5/identity-governance/hidden-dynamic-attribute-in-workflow/m-p/73793#M46...
If this helps, please select Accept As Solution and hit Kudos
05/26/2024 09:26 AM
It should work with Action String