com.mendix.systemwideinterfaces.core.IFeedback.Type.DOWNLOAD_FILE

0
Hi I want to use com.mendix.systemwideinterfaces.core.IFeedback.Type.DOWNLOAD_FILE along with com.mendix.systemwideinterfaces.core.IFeedback to download files directly from Java. FeedbackHelper does not have methods for this. How can one accomplish this? Thanks
asked
1 answers
1

What is the specific use case to use the IFeedback?

If you call a Java action from a microflow that results in downloading a file you could create a file object in the java action return that to the calling microflow and then use the regular activities in a microflow to trigger a file download.

However, if you trigger this Java code as part of a request handler then you need to provide the file via the HTTP response. For this there are many code examples available. But none of them will be using the IFeedback interface.

answered