Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

Sujendra_0-1638814354997.png

 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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

 

Avatar

Administrator

@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