Skip to main content
Question

Open View based on variable.

  • October 15, 2025
  • 3 replies
  • 39 views

manuel.wetze
Level 9
Forum|alt.badge.img+8

Hi all, 
I have a bit of an advanced nut to crack here so any approaches no matter how complex are welcome.

To create a nice user experience I want to open another view via a Button (or also via table cell interaction). However a view variable should steer which view to open.

Context:
I have one table which lists and sorts all type of problems . Its purpose is to get an overview and decide what to work on so lets call it “Overview”. Once selecting a problem more details are needed. Those are driven by the type of problem at hand. Hence I need a way to click “Open Details” and depending on variable it opens and passes variable to “Detail View A” or “Detail View B”.

The behaviour I want to achieve is:
Click within “Overview” on a Problem of type A → Open “Detail View A”
Click within “Overview” on a Problem of type B → Open “Detail View B”

If you have any idea on how to facilitate this navigation (maybe via javascript) or any other means than Buttons/Table interaction let me know. 

 

3 replies

Forum|alt.badge.img+2

I think you can check out the Profile View — it works quite similarly to what you mentioned above . Thank you


manuel.wetze
Level 9
Forum|alt.badge.img+8
  • Author
  • Level 9
  • 53 replies
  • October 28, 2025

Yes indeed it is similar to Profile Views. The point was though to open a different view as a profile view if a variable is set differently.

I managed to achieve this behaviour only in YAML using Javascrip. If anyone has a similar situation the following might help you:

 

openView:

          viewKey: ${variable=== "A" ? "view_key-a" :variable=== "B" ? "view_key-b":""}

 


janpeter.van.d
Level 12
Forum|alt.badge.img+26
  • Level 12
  • 496 replies
  • October 30, 2025

Hi ​@manuel.wetze

I solved this in the past exactly the same using Javascript. I think this is still the only way doing this! 

Cheers,

Jan-peter