The easiest way to build what you want is as follows:
Core.storeFileDocumentContent(IContext context, IMendixObject fileDocument, java.io.InputStream inputStream)
method to store the just generated PDF file in this FileDocument object.I hope this helps you!
Thanks, your question is much clearer now.
The solution is quite simple, but you have to be familiar to microflow and JAVA to make the solution.
I will give a short (as short as possible) list what you have to do:
Now you have a new parameter of type System.FileDocument as input variable in your JAVA action that generates the PDF.
Core.storeFileDocumentContent(this.getContext(), fileDocument.getMendixObject(), name, stream);
return fileDocument;
Where
Now you're JAVA action is ready. You're almost done, except two last steps:
This must help you out, and this is the common way to create the functionality you described.
Thanks, your question is much clearer now.
The solution is quite simple, but you have to be familiar with microflow and JAVA to make the solution.
I will give a short (as short as possible) list what you have to do:
Now you have a new parameter of type System.FileDocument as input variable in your JAVA action that generates the PDF.
At the bottom of your action append the following code (and add the necessary imports):
Core.storeFileDocumentContent(this.getContext(), fileDocument.getMendixObject(), name, stream);
return fileDocument;
Where
Now you're JAVA action is ready. You're almost done, except two last steps:
This must help you out, and this is the common way to create the functionality you described.
Would you please rephrase your question and be a little bit more specific? It's still quite hard to give a proper answer. Do you want to invoke your own Servlet?
I have never tried it myself but you could try adding an "External Link" and rendering it as a button and see if that works.