Dynamically populate Touch UI dialog - select options | Community
Skip to main content
Level 3
Sep 20, 2019 8:14 AM UTC
Solved

Dynamically populate Touch UI dialog - select options

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.
rachnamehtaAccepted solution
Level 3
Oct 1, 2019 9:44 AM UTC

5 replies

rachnamehtaAuthorAccepted solution
Level 3
Oct 1, 2019 9:44 AM UTC

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…

Translate
Level 3
Sep 27, 2019 10:09 AM UTC

Hi all,

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

Translate
Employee
Sep 20, 2019 3:03 PM UTC

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

Translate
Level 3
Sep 20, 2019 2:26 PM UTC

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

Translate
Employee
Sep 20, 2019 11:47 AM UTC

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

Translate