File based Asset Report customisation- adding new report type to filter based on file size | Community
Skip to main content
Sujendra
Level 2
December 6, 2021
Solved

File based Asset Report customisation- adding new report type to filter based on file size

  • December 6, 2021
  • 2 replies
  • 542 views

Hi, 

I am trying to create new report type  under Tools>> asset> reports

http://localhost:4502/mnt/overlay/dam/gui/content/reports/createreportwizard.html

 I just need to add one more field in existing createreportwizard page. Looks like everything is tightly coupled. I have added a new icon in report list (for my new reports) and also able to add new fields in the createreportwizard page. now I am trying to add size field like below.

/libs/settings/dam/search/catalogs/jcr:content/items/filesize

 I need to generate report based on this size too. 

have anybody tried such changes before? is it possible to extend the existing functionalities here? 

 

Thanks in advance.

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 TarunKumar

Hi @sujendra ,

You can use your custom approaches for report generation. You can create a servlet for the creation of custom reports containing different information about an asset, which includes folder names, Asset names, last modified, and last modified by fields in the CSV format

In your servlet you can  use the Query Builder API and JCR APIs to create the report in the servlet.

You can follow this link for sample code:

https://gist.github.com/abhishekanandttn/e5584f20844acc1717648bfa6a9cc640


-Tarun

 

2 replies

TarunKumar
Community Advisor
TarunKumarCommunity AdvisorAccepted solution
Community Advisor
June 28, 2024

Hi @sujendra ,

You can use your custom approaches for report generation. You can create a servlet for the creation of custom reports containing different information about an asset, which includes folder names, Asset names, last modified, and last modified by fields in the CSV format

In your servlet you can  use the Query Builder API and JCR APIs to create the report in the servlet.

You can follow this link for sample code:

https://gist.github.com/abhishekanandttn/e5584f20844acc1717648bfa6a9cc640


-Tarun

 

kautuk_sahni
Community Manager
Community Manager
July 16, 2024

@sujendra Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni