Hi,
I am generating my reports by API request over a jsreport container with a mounted directory /jsreport-home/. I need to retrieve the generated pdf files stored in /jsreport-home/data/storage/ using a internal client id and a internal timestamp. I imagine this can be solved in two ways:
- Edit the /jsreport-home/data/reports file on each report generation and introduce for each registry my internal information, then use this file as a directory to retrieve what I want.
Problem: I don't know how to edit this file on each report generation. - Create a custom directory file which contain my internal information and the report id (or name), similar result as alternative 1.
Problem: I need to obtain the report id (filename on storage) on the API request, and I dont know how.
I prefer alternative 1 because it is more integrated with other jsreport functionalities.
Any suggestion would be helpful.
Thanks!