Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Programmatically create aem dialog

Avatar

Level 3

Hi Team,

Can someone share a tutorial for programatically creating AEM touch dialog?

Following is my requirement.

We have a separate front-end JavaScript development team.This team develops javascript components that can be placed inside the website.Each time when a new JavaScript component is released ,a corresponding AEM component has to be developed, in order to  make the new component available for the editor.To save the time for development we are checking the possibility of a global component.

This global components dialog has a dropdown list the values of this dropdown will be populated by calling a service/json.

when the editor select an item from the dropdown ,an additional service is called to fetch the properties for the selected item.

Based on the service response new fields are to be added to the dialog programmatically.

 

Regards

Denny 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @dennyj13354090,

 

Once you receive the values from 3rd party services, you can dynamically make them as dialog properties. Please note the response should be in JSON.

 

Example here: https://www.tothenew.com/blog/aem-ways-to-populate-a-selection-widget/

 

Hope this helps!

 

Thanks,

Kiran Vedantam.

View solution in original post

3 Replies

Avatar

Level 3

Hi Rohit,

Thanks for the reply.I am looking for something different.

I have updated my question.

Regards

Denny

Avatar

Correct answer by
Community Advisor

Hi @dennyj13354090,

 

Once you receive the values from 3rd party services, you can dynamically make them as dialog properties. Please note the response should be in JSON.

 

Example here: https://www.tothenew.com/blog/aem-ways-to-populate-a-selection-widget/

 

Hope this helps!

 

Thanks,

Kiran Vedantam.