Expand my Community achievements bar.

how to pass values between two different dialogs in AEM component ?

Avatar

Level 1

Please suggest your solution if i want to load the multifield authored value from one component dialog into multiselect value of another component dialog dynamically ?

1 Reply

Avatar

Community Advisor

Hi, 

 

This is not an easy requirement to fulfill because it goes against the nature of how the components work. Ideally, you should avoid such situations. If you need to share data between components, extract the common data and place it in a shared, accessible location, such as a Content Fragment, ACS List, etc. You can learn more here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sharing-data-between-compo... https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/finest-way-to-exchange-dat...

 

However, if you really need to do this, you could explore ACS Commons Shared Properties: https://www.bounteous.com/insights/2016/12/15/aem-shared-content-and-component-properties/ or add JavaScript to your dialog to request information from another dialog and inject it into the HTML dynamically. You can learn more here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-access-to-global-value....

 

Hope this helps



Esteban Bustamante