I want to switch between two different views in one component (data explorer as one view vs graphs as another view) to avoid “scrolling”.
My approach is to use the output of the “Boolean Widget” node, which “delivers” true and false (for the first view). This variable is then used as flow variable “hideInWizard” in the different widgets. As I want to switch between both “views”, I need a second boolean variable, which is just the inverse of the “original” output of the “Boolean Widget” (false and true).
Is there a possibility to create this negated variable?
Bear in mind that the resulting column (whether you replace or append) will become an Unknown type (hence the question mark symbol). If you want to turn it to a Boolean type again, use the Column Auto Cast Node followed by a String Manipulation node with the command ‘toBoolean(x)’.
your idea was really great and I have “translated” it into a small example. Obviously the Boolean Widget node is not the best to switch between views in a component, but as an example it is just fine “enough”.
So, here is a simple workflow Switch View.knwf (16.8 KB) and a screenshot of the component
Thanks for sharing the workflow @Juergen ! It caught my interest since I’ve never worked with those nodes before. I’ve saved it to my personal collection for my own interactive projects.