Skip to main content
1-Visitor
September 28, 2018
Solved

Label Visibility

  • September 28, 2018
  • 1 reply
  • 1386 views

I currently have a master mashup that has a header and a navigation tab on the left. I have a label on the header. I want this label to be visible only when the contained mashup is at 'Overview' (I have a mashup called 'Overview'). But when the contained mashup is some other mash ups, the label should be invisible. I tried to write a JS service that returns a boolean value, but I've been unsuccessful. How do I accomplish this?

 

Best answer by posipova

You would have to store your current mashup name somewhere, either through a service or a session variable. Then, on the master you would use the Validator widget and bind the label visibility to the output of the validator. So, if the output of your validator is true, display the label. In the validator itself, you would be checking whether the parameter is equal to the needed mashup name, where the parameter is a variable you'll define.

1 reply

posipova20-TurquoiseAnswer
20-Turquoise
October 1, 2018

You would have to store your current mashup name somewhere, either through a service or a session variable. Then, on the master you would use the Validator widget and bind the label visibility to the output of the validator. So, if the output of your validator is true, display the label. In the validator itself, you would be checking whether the parameter is equal to the needed mashup name, where the parameter is a variable you'll define.

Support
October 15, 2018

Hi @leeejw717.

 

If you are satisfied with the response provided by @posipova, please mark it as the Accepted Solution for the benefit of others who may have the same question.

 

Regards.

 

--Sharon