Message from a java action to mendix application

0
How can I send a pop-up message directly from Java into a running mendix application as the below code is deprecated from mendix lib (com.mendix.webui.Custom Java Action.add Text Message Feedback public Boolean executeAction() throws Exception { this.addTextMessageFeedback(MessageType.ERROR, "hoi", true); return true; }
asked
2 answers
3

Use the IFeedback class as this is stated in the deprecation message.

See https://apidocs.mendix.com/7/runtime/

answered
0

Hi,

What you can also do is throw an exception with a nice message and then show this message to the user from the microflow where the java action is used.

-Andrej

 

answered