Dynamically populate Touch UI dialog - select options

Avatar

Avatar

rachanam1547401

Avatar

rachanam1547401

rachanam1547401

20-09-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

rachanam1547401

Avatar

rachanam1547401

rachanam1547401

01-10-2019

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

Answers (4)

Answers (4)

Avatar

Avatar

rachanam1547401

Avatar

rachanam1547401

rachanam1547401

27-09-2019

Hi all,

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

Avatar

Avatar

shunnar

Employee

Avatar

shunnar

Employee

shunnar
Employee

20-09-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

Avatar

Avatar

scottm91515441

Avatar

scottm91515441

scottm91515441

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

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

20-09-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