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 doubt in ACS Commons Reports , I am passing a dropdown in search parameters which contains different template types.

AditiSi_0-1693770660844.png

and in the result, I want columns dynamic to the option I am choosing in above dropdown. 

Suppose If I select image from the dropdown above then in result column it should fetch ' jcr:content/root/container/image/contentId', similarly if i select Article from dropdown it should fetch 'jcr:content/root/container/article/contentId'. 

Is there any way we can achieve this dynamic behavior in ACS Commons Reports.

 

@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
Level 8

Hi @AditiSi 

Did you get a chance to check on the report executors . We can register custom report executors which can take the different parameters and return the results based on that. In you case based on the selection you can pass the corresponding property to the builder and it can return the filtered response.

Please checkout the below links for creating custom report executors and configuring them.

 

https://adobe-consulting-services.github.io/acs-aem-commons/features/report-builder/extending.html#c...

https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/ad...

 

 

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 8

Hi @AditiSi 

Did you get a chance to check on the report executors . We can register custom report executors which can take the different parameters and return the results based on that. In you case based on the selection you can pass the corresponding property to the builder and it can return the filtered response.

Please checkout the below links for creating custom report executors and configuring them.

 

https://adobe-consulting-services.github.io/acs-aem-commons/features/report-builder/extending.html#c...

https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/ad...