Parameterizable calculation wihtin interactive view

Hey Knimers,
I am trying to create a quality analysis workflow of production data. Therefore, I’d like to calculate process parameters CP/CPK depending on a individual six sigma level (this level is constant within the calculation). This six sigma level should be adjustable from 1-6, depending on the users decision. I could already manage to calculate the values of one specific input six sigma level (see picture of interactive view attached).


In the next step the user should be able to manipulate this six sigma level within the interactive view window. The calculation then should immeadiatly be updated. Without leaving the interactive view window.
Unfortunately, I could not find out how to handle the “interactivity” of the variable so far. Does anyone know, how to handle this?
I’m very thankful for very kind of help!

Best,
Oliver

Hi Oliver,

Thank you for your question. Let’s first make sure that I understand what you are looking for: You want display the process parameters depending on the level choice done by the user in an interactive way. Are those values for each level precalculated or do you calculate them on the fly after the selection?

Best,
Jeany

1 Like

Hi Jeany,
thank you very much für your reply. I would like to calculate them on the fly after interactive user selection on interactive view-screen. The way I currently built up my workflow is:
1.) Read input (sigma-level) of user via Value Selection Node
2.) Convert input variable to a row with Variable to Tablw Row-Node
3.) Convert String to Number (At this point the user choice is stored as integer value in a row)
4.) Joining this table with a second table, where the rest of data for calculation is stored
5.) Operating the calculation.

This works fine for one preselected input (sigma-level). Know, the user should be able to select a different integer value (Sigma-level) within in interactive view of a component and the calculation should adapt immediately. In Java you use something like a “Listener” to scan, if a value of a input is changed. Thats what I need now for KNIME. But I don’t know how to implement it.
Thank you very much for your help! :slight_smile:

Best,
Oliver

Hi Oliver,

Unfortunately, this is not possible with our current interactive views. As you said, it works only with a preselected sigma level if you want to do the computation after the selection. Sorry!

Best,
Jeany

Hi @Oliver_1,

maybe a loop over your view would be a workaround?
E.g. have the input fields on the same page like in your example and then the user continues to the “next page” - which actually loads the same page with update values?
So and endless loop over the component until the user checks a checkbox or something? :thinking:
A little ugly but maybe good enough :see_no_evil:
Else you might be able to create the interactivity via the generic table view node and javascript… but this would require coding :thinking:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.