Posted Thu, 01 Jan 2015 06:00:00 GMT by Portal Admin

Q. Is there a way to display the map name in the label for a map status probe that removes the slash (/) at the front of the map name? The label takes the form of ${PARAM:Map Name}.

A. In version 5.2, the following label will display just the part of the map name after the last slash. (The undocumented ${js} macro will be replaced in later versions by a more robust syntax; it currently doesn't handle unbalanced curly braces in the javascript contents.)

${js:write("${PARAM:Map Name}".replace(/^.*\//, ""))}

You must be signed in to post in this forum.