Hello,
My goal is to improve the configuration dialogs of my components.
I have 2 issues.
The first issue is that the default values are overwritten by the values of the configuration dialog itself.
That way the user can’t really see the default values that I’m giving to the configuration nodes after consecutive runs. It just keeps the last value that was typed in the dialog.
Now the second issue, has to do with what default values I’m trying to give.
I have a component that uses XML Reader node and XPath and takes the element values from the provided XML and shows them in the configuration dialog.
Basically, I just want the users to see what’s inside the XML so they can modify parts of the document.
But every time you open the dialog of the component, the overwritten values from the previous run are kept(issue 1).
The optimal would be to show the XML’s element values as default values in the dialog(using flow variables for the default values).
It would be nice, if every time I open the dialog, the component reads the XML and renews the default values based on provided XML’s element values.
I guess that the problem is that the configuration nodes need to be the first nodes that are executed in the component.
So the questions are, can I have the dialog to not overwrite the default values?
And can I have a single component that renews it’s default values based on the provided XML document? It seems to me that this would require 2 components, one for the querying of element values and the other one that takes these values as input and puts them using flow variables as default values for the configuration dialog.
I hope that is clear enough.