Skip to main content
1-Visitor
Sep 28, 2018 10:31 PM UTC
Solved

Label Visibility

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?

 

posipovaAnswer
20-Turquoise
Oct 1, 2018 12:59 PM UTC

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.

2 replies

posipova20-TurquoiseAnswer
20-Turquoise
Oct 1, 2018 12:59 PM UTC

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.

Translate
Support
Oct 15, 2018 6:29 PM UTC

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

Translate