Expand my Community achievements bar.

Dynamically populate drop down based on another drop down selection in Classic dialog where data is populated from external DB

Avatar

Level 2

Needs to dynamically populate drop down in classic dialog from an external DB and based on the selection of that drop down, I need to populate another drop down. The data for the drop down will be fetched from External DB using Sling Servlets. We are able to populate the First dropdown using Sling Servlets. Based on that selection, I need to populate another drop down, which also has to be dynamically populated by External DB call. Please Suggest on this..

3 Replies

Avatar

Level 10

You can hook in a drop-down to a servlet - see: 

https://helpx.adobe.com/experience-manager/using/dialog_fields_servlets.html

This article shows two drop-down controls being populated. 

Avatar

Level 4

Hi,

As Scott mentioned, you can configure your drop down to fetch values from s json which is generated as a servlet response.

For Classic UI - please go through the following links.

https://docs.adobe.com/docs/en/aem/6-1/develop/components/xtypes.html

https://docs.adobe.com/docs/en/aem/6-1/ref/widgets-api/index.html?class=CQ.form.Selection

Regards,

Ashwin Raju

Avatar

Level 4

Hi,

As Scott mentioned, you can configure your drop down to fetch values from s json which is generated as a servlet response.

For Classic UI - please go through the following links.

https://docs.adobe.com/docs/en/aem/6-1/develop/components/xtypes.html

https://docs.adobe.com/docs/en/aem/6-1/ref/widgets-api/index.html?class=CQ.form.Selection

Regards,

Ashwin Raju