Once you create a DataSource object, its data can be used to dynamically populate a drop-down control, as shown in this illustration.
This development article steps you through how to build an AEM 6.2 HTL component by using an AEM Maven Archetype 10 project. Then it discusses how to populate a drop-down field in the component's dialog using a DataSource object.
To read this development article- click: https://helpx.adobe.com/experience-manager/using/aem62_datasource.html.
Adobe Digital Marketing Community
Join the Adobe Digital Marketing Community. Start by clicking this banner
Twitter: Follow me on Twitter @smac2020