Hello Knime community,
my current situation is that I have created an own JPanel which is represented as one of my tabs in my NodeDialog.
This JPanel takes input data from previous nodes (That's why I use DataAwareNodeDialogPane).
The JPanel has two methods which will create two SQLQueries when the user has done his input.
I want to do two things:
1) I want to call both methods when the user presses "apply" or "ok" on the NodeDialog. I know there is a method onClose() which works perfectly. However the query is also generated when he just closes NodeDialog. It's not really a problem. I just wanted to ask if someone has a better idea/approach.
2) The real problem is that I can't store this query in a SettingsModelString because I need a DialogComponent for this. So I need to declare a public static String variable for this. Set the value when the dialog is closed.
And get the value of this String in my NodeModel by NodeDialog.'variablename'. Is there not any better for the communication between NodeModel and NodeDialog?