How to get dynamic values for result parameters in ACS commons reports? | Community
Skip to main content
Level 2
August 30, 2023
Solved

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

  • August 30, 2023
  • 2 replies
  • 665 views

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  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

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-selection-dropdown-in-a-dialog-with-a/m-p/459533 

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 6, 2023

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-selection-dropdown-in-a-dialog-with-a/m-p/459533 

Esteban Bustamante
kautuk_sahni
Community Manager
Community Manager
September 8, 2023

@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