Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
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?
Solved! Go to Solution.
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.
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.
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