How do you create a multi-page data app in KNIME desktop?

I’ve been trying to create a data app on the desktop. One of the issues that I’m struggling with is to create multiple pages in the data app.
e.g.
page 1 – A line chart
page 2 – A table of numbers
I know that it can be done on KNIME Server – but I can’t seem to find a way to do it on the desktop. Is there a way to do this? Or is it just a pipe dream?

Thanks!

Well… it does not exactly work as it does on Server / Hub - i.e. you can’t have that “next button”.

There are some workarounds though to create a somewhat similar experience.

You can use a Single Selection Widget combined with a Case Switch Node to steer what is visible in a component:

You set up the widget to re-execute on change.
You then connect it to the case switch start node and use the “index” flow variable to drive which port is active.
You then connect the output ports to your widget - you can even connect it to a full component that holds the view you want to make visible e.g. on page 1.

Whatever is connected to an inactive branch will not display and whenever you change the page, your view refreshes showing only what is connected to the now active branch.

Prototype is here:
differentpages.knwf (81.5 KB)

3 Likes

Thanks @MartinDDDD!
It looks like I’ll need to know how many and what downstream widgets (e.g. the Text View widgets) are needed, yah?

Well I think what you need to know is home many pages you have.

You can then create a view for each page as individual component inside your main component.

E.g. instead of having the text widgets that I used as a placeholder you can have a component with a bunch of different charts, other widgets the user can interact with etc…

For each page you’d add an additional selection option in the single selection widget and an additional output port in the case switch node…

1 Like

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