For the context, when components are made with for example a table view; the table will be accessible through the “Interactive View” of the component and you will be able to select row. When you close the Interactive View you can “Close & Apply settings as new default”. If you do, you can Reset the component, relaunch it and then the previously selected row are still selected : ie the default values has been conserved => great
The problem: I select a choice in the “Select input” of the form and the output variable is correct. But when I “Close & Apply settings as new default” than I “Rest” the component => the default values are not conserved.
Thanks in advance,
Hi @lcollia -
I’m not sure offhand, but let me ask internally and see what I can find out…
so I talked a bit with @blaney
Apparently it is not possible to save defaults with Generics JS node.
@albrecht : 1. There is a SETTINGS object on the Generic JS View, which can be used to temporarily store data (which will be lost on reset, but survives a reopen of the view)
2. It is only possible for the interactive filter nodes to update their defaults. It is not possible that a selection that has been published to e.g. a table view would be persisted. A default selection is something that we currently don’t have (at least for most views).
Hi @paolotamag, @blaney, @albrecht,
I am not sure to fully undertand your point with the knimeService events; but I understand that it could be a way to keep the users choice in a SETTINGS object while the component is not reset (tutorial on how to use knimeService is welcomed )
@paolotamag, what you explained in your last comment is exactly my problem; I can get the output variable after the user has interacted with the view, but I cannot get the default output variable value after the component has been reset. (whereas it work with other interactive nodes like @albrecht explained).
In a few words, my problem is not to obtain the interactive view as it had been when the user Apply & Close; but to change the default output variable value with the well named menu “Close & Apply a New Default”.
So you can think of a solution, you are welcomed
I am thinking of a potential solution, but I am not sure it could work.
- obtain the default value of the String Widget ?
- set the value of the String Widget ?
@paolotamag, @blaney, @albrecht, Do you think this solution is possible?
@paolotamag, @blaney, @albrecht, Do you think the solution I was thinking in the previous reply is possible?
Thanks in advance,
Hi, sorry for the late reply,
the only way to change the initial value of the flow variable would be via interacting with the String Widget.
Now this is if I understood correctly your question. Best way would be to open KNIME AP and try and send us what you got
I cannot test this solution if I do not know some specific cmd that I need (so I cannot send you what I have :D)
- obtain the value of the String Input form from the String Widget ?
- set the value of the String Input form from the String Widget ?
Thanks in advance
I see what you mean now, I will ask to @albrecht (developer at KNIME) and get back to you asap.
Best of luck,
Thank you for this answer. I understand this point of view.
If needed we could talk about this in Berlin next month
You are right I will open a ticket for that.
Thanks for your understanding!
happy to see you joining the KNIME Spring Summit 2020!
See you there then!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.