Programmatically create aem dialog | Community
Skip to main content
Level 2
May 10, 2021
Solved

Programmatically create aem dialog

  • May 10, 2021
  • 2 replies
  • 1945 views

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 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kiran_Vedantam

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.

2 replies

Rohit_Utreja
Community Advisor
Community Advisor
May 10, 2021
Level 2
May 11, 2021

Hi Rohit,

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

I have updated my question.

Regards

Denny

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
May 11, 2021

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.