Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Parent and Child Dynamic attribute Mapping

shivmano
Regular Contributor III
Regular Contributor III

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 

 

4 REPLIES 4

PremMahadikar
Valued Contributor
Valued Contributor

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

Attributeparent1
Attribute TypeENUM
ValueA,B
Action StringHIDE###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

Attributeparent2
Attribute TypeENUM
ValueC,D
Action StringSHOW###child###C___SHOW###child###D___
What action to perform when Parent attribute changes?Mapping

DA3: Child

Attributechild
Attribute TypeSingle Select From SQL Query
Valueselect case when ${parent2}='C' then 'E' when ${parent2}='D' then 'F' end as ID
Default Valueselect case when ${parent2}='C' then 'E' when ${parent2}='D' then 'F' end as ID
Parent Attributeparent2

PremMahadikar_0-1716557637056.pngPremMahadikar_1-1716557645751.png

PremMahadikar_2-1716557657937.png

If this helps your question, please consider selecting Accept As Solution and hit Kudos

shivmano
Regular Contributor III
Regular Contributor III

@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? 

@shivmano ,

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.

  • Navigate to Global Config and enable the below config -

PremMahadikar_0-1716578138394.png

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

It should work with Action String


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.