Dynamically populate Touch UI dialog - select options | Community
Skip to main content
New Participant
September 20, 2019
Solved

Dynamically populate Touch UI dialog - select options

  • September 20, 2019
  • 5 replies
  • 4798 views

Hi team,

I want to populate touch UI dialog's select field from json file, is it possible without writing any backend/java code?

I am looking for an option similar to class UI dialog where we can specify options="<location of json file path>" for selection widget which automatically populates widget with the options from json file.

Thanks & Regards,

Rachna

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 rachnamehta

Hi

wrote a small blog about this approach, thanks all for your valuable inputs.

https://medium.com/the-telegraph-engineering/saying-more-with-less-how-to-build-components-for-aems-two-uis-without-repe…

5 replies

rachnamehtaAuthorAccepted solution
New Participant
October 1, 2019
New Participant
September 27, 2019

Hi all,

Thank you for your replies,  we ended up using acs commons generic lists using data source option.

Employee
September 20, 2019

Another method that also involves writing some custom code is to use the DataSource class:

Adobe Experience Manager Help | Using Granite DataSource objects to populate AEM Touch UI objects

New Participant
September 20, 2019

You must write custom Java code for this. You can use WCMUse class for this purpose: Adobe Experience Manager Help | Using an WCMUsePojo class to populate an Experience Manager Touch UI Select Field

Employee
September 20, 2019

As per my understanding, there is no OOTB functionality for that use case and you have to write custom code. More details at [1]

[1] https://forums.adobe.com/thread/2456248#10198076