Pdf Document Generation on Cloud

0
Hi,   I use PDF Document Generation module and it works in my local without any problems. However, when I try to generate pdf in cloud environment, a snippet does not appear. I was pulling requester information using an association action in a microflow within the snippet. How can I solve this problem? Here is the difference between my local and cloud environment:    
asked
2 answers
0

When it works locally, the CSS appears to be correct. What I would check is, whether the same user does the local and the cloud printing. Locally, the current user will do the printing. If you print in the cloud, a service user could be involved who has missing read access to the association of your child object. Could that be possible?

answered
0

Hi @Ayberk, We can't know for sure what the exact issue is. It however does seem to be related to access rules. Make sure that the user that you pass to the `JA_GenerateDocumentFromPage` Java action has the needed user role to read the data over the association.

I would advice you to have the document page opened using a button on the UI; Then login with the same user that you are passing to the Java action and make sure that the data is visible in the browser UI (page), as mentioned in the documentation of the module, this should help you verify if the user has the right user role.

https://docs.mendix.com/appstore/modules/document-generation/#module-usage-runtime-issues

answered