Skip to main content
1-Visitor
September 27, 2018
Question

How to get the selected menu title

  • September 27, 2018
  • 6 replies
  • 3445 views

Right now, I am working on a Master mashup that has a header at the top and a navigation tab on the left with a few menu buttons that will lead to different mashups when clicked. On my header, I want to have COMPANY NAME | NAME OF THE MENU" so for example, Google | Overview, or Google | Analysis depending on which menu was selected. How do I get the name of the selected menu?

 

 

 

6 replies

1-Visitor
September 28, 2018

If you are using a Menu widget it doesn't keeps track of the selected row, the solution:

 

  • Fill the menu with a result of a service  (not a composer Static defined menu, a Data-Driven menu)
  • Bind the result of the previous result to the Menu and to a hidden List widget 

Now Selected Row of the previous service will work as expected and you can use it to get the Name and any other related info that you had set on the Menu Result.

22-Sapphire I
September 28, 2018

You can also use a Menu widget in 'drive parameter' mode to get it directly from the menu.

Or you can put an invisible text field in the Mashups and bind those back through a parameter or the session