AEM 6.1 : Dynamically updating Classic UI Dialog Select Fields

Avatar

Avatar
Validate 1
Level 1
souhaylabdouni
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
souhaylabdouni
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
souhaylabdouni
Level 1

24-01-2019

Hello,

We are trying to dynamically inject the options of a select field on classic ui dialog.

The options would be provided by a servlet and injected via an extjs plugin.

In touch ui we found this solution : Adobe Experience Manager Help | Dynamically updating Adobe Experience Manager TouchUI Dialog Select ...

It's works because there is the magic event : "dialog-ready"

Is there a similar event on classic ui ?

Thank you !

Replies

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

24-01-2019

try usual 'dialogopen' event

check -

https://aem.adobemarketingclub.com/populate-tags-based-on-selection-in-pathfield-classic-ui/

Adobe AEM: Classic UI dialog custom validation

javascript - Drop down values selected in classic dialog doesn't show same value in touch ui dialog ...

CQ5 | Widgets API

you could add listeners like

<listeners
jcr:primaryType="nt:unstructured"
afterrender="function(dialog){alert(dialog);}"
beforesubmit="function(dialog){alert(dialog);}"/>

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

24-01-2019

For those reading this thread and want to know how to perform this use case on 6.4 -- see:

Building Experience Manager Components using Granite/Coral Resource Types

For 6.1 using Classic UI -- see this AEM HELPX Article -- Scott's Digital Community: Populating AEM Component Dialog fields using Sling Servlets

Avatar

Avatar
Validate 1
Level 1
souhaylabdouni
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
souhaylabdouni
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
souhaylabdouni
Level 1

24-01-2019

smacdonald2008 ,

In our case the options are provided by an ACS Generic List Page : Generic Lists

We are in a multi-site context, and each site has it's own ACS Generic List

We want to load the right options from the right site.

So to do that, we were coding a extjs plugin to calculate the path of the ACS Generic List and we facing an issue on how to inject the calculated path to the options attribute of the select in the dialog

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

24-01-2019

On the backend - write a Java class that can read these values stored in the JCR and the servet can get them and then you can inject into the classic ui dropdown.