Async report Generation not assigning a reportId
-
HI
I am having an issue with async report generation.
When I debug and check the values within Report.Meta the reportId is always null.Is this the same as the the entity unique id mentioned in the documentation?
Am I correct in saying that this would be the same Id that gets put into the AsyncReportLocation url?
I would like to use this Id to create an entry in our database.
-
The report id is there only when you don't use
async:true
.
However yes, you can get the id also from theAsyncReportLocation
URL, its the same.
-
Thank you for the response.
How is this entity unique Id being generated?
Can you point me to the place in code?The reason I would like to check and understand how it is being generated is because I want to ensure that this will be unique every time. I would like to not run into a situation where reports are being written over because the id is the same.
-
It s unique every time.
Here is the id generation code
https://github.com/jsreport/jsreport/blob/29b4f675575ecf94fc1785b82289e26dbdafe9d5/packages/jsreport-fs-store/lib/customUtils.js#L12
-
Thank you very much, I had a look and we can definitely be sure it will be unique