Expand my Community achievements bar.

SOLVED

How to get dynamic values for result parameters in ACS commons reports?

Avatar

Level 2

Hi Team, 
I have requirement in ACS Commons Reports, where I am passing a dropdown in search parameters which contains different templates but in result parameters, I need to make columns dynamic. Suppose if I select template (conf/test/image-page-template) from dropdown then in result column it should fetch (image/contentid) and if I select template (conf/test/article-page-template) then in result column it should fetch (article/contentid).

 

@arunpatidar   @lukasz-m   @kautuk_sahni 

@SivakumarKanoori @Fanindra_Surat   @krati_garg @iamnjain @somen-sarkar @bajancherry @sunil_kumar_ @shelly-goel @Ganthimathi_R @davidjgonzalezzzz @krishna_garikapati   @Shubham_borole @milind_bachani @krishna_sai @manjunathdj  

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi, 

 

I am not sure if I understood correctly, but I think you just need to add some JS to populate the values based on the first selection. You can find below some examples of how that can be done using datasources and dropdowns:

https://redquark.org/aem/day-17-granite-datasources/

https://unlocklearning.in/dynamic-dropdown-in-aem/ 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dynamically-populate-selec... 



Esteban Bustamante

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi, 

 

I am not sure if I understood correctly, but I think you just need to add some JS to populate the values based on the first selection. You can find below some examples of how that can be done using datasources and dropdowns:

https://redquark.org/aem/day-17-granite-datasources/

https://unlocklearning.in/dynamic-dropdown-in-aem/ 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dynamically-populate-selec... 



Esteban Bustamante

Avatar

Administrator

@AditiSi, Do you find the suggestion from Esteban useful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. 



Kautuk Sahni