Expand my Community achievements bar.

Nomination window for the Adobe Community Advisor Program, Class of 2025, is now open!
SOLVED

Dynamically populate Touch UI dialog - select options

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 3
5 Replies

Avatar

Employee Advisor

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

Avatar

Level 3

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...

Avatar

Employee

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

Avatar

Level 3

Hi all,

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

Avatar

Correct answer by
Level 3

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-...