Display python results

I’m passing the text fields into a try catch which contains ProcessBuilder of using a python script.
I’m trying to display the returned results onto a page. But when I click the process button nothing is displayed on the page

Java Code would help to help you, sadly humans can’t guess code from images like others :wink:

This is the code
EmptyView.java (3.45 KB)

You cannot always get the UI instance from outside the UI thread. Or, the instance could be wrong.

Try calling UI.getInstance() outside the executor thread, store it, and use it later in the thread code.

Thank you, I will try that

No problem! Please report back whether you get it working! Good if someone else stumbles across this thread.