Hi ,
I want to create a "Dynamically populate selection dropdown in a dialog with a datasource using JSON" have any perfect reference please ping me how to do step wise function.
Solved! Go to Solution.
Views
Replies
Total Likes
Check out ACS commons Generic List [1]
[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/generic-lists/index.html
Check out ACS commons Generic List [1]
[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/generic-lists/index.html
Hi @keshava219
Checkout this video, try latest ACS commons package.
https://www.youtube.com/watch?v=PqHOgKBs30U
Hope this will help!
@keshava219 You can create datasource node structure with sling:resourceType of datasource as sling:resourceType (String) = /bin/dropdownList ( i.e. Path of the servlet implementing the data source for dynamic value). It will give the desire result of a dynamic dropdown as you can see below the screenshot.
For DataSource Servlet (/bin/dropdownList) Implementation you can refer to below articles:
https://redquark.org/aem/day-17-granite-datasources/
http://www.sgaemsolutions.com/2019/01/dynamically-populate-drop-down-values.html
Hope this helps
Thanks
hi @shaileshbassi,
Thanks, this was helpfull But I want to pass along with parameters as well to servlet from dialog which author mention
Example
On dialog i have numerical number i want to pass to servlet this value possible?
Views
Replies
Total Likes