Yesterday I recommended that a "Short Map Name" option being created.  I didn't 
realize that you can create your own macro's.  Is there a way to name, save and 
include the macro (such as the long one below) in the option list of the "Edit 
Device Label" window?

Thank you
Randy

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of William Fisher
Sent: Thursday, June 03, 2010 5:49 PM
To: InterMapper Discussion
Subject: Re: [IM-Talk] :!: Problem with Map Names in IM 5.2.4

On 6/2/10 11:53 AM, kaijlh wrote:
> I have the following problem with the version 5.2.4 of Intermapper.
>
> All Map names appear with a '/' just at the begin of the name.
> In the Labels I have ${PARAM:Map Name}
>
> It was not the case in version 4.6.
> I don't know how to solve this, except by modifying all Names manually.
>
> Any ideas 
We will see what we can do to make the map status probe labels cleaner
in a future version.

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(/^.*\//, ""))}

-- 
Bill Fisher
Dartware, LLC
____________________________________________________________________
List archives: 
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [email protected]


--
This message was scanned by the Georgian College ESVA and is believed to be 
clean.

____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [email protected]

Reply via email to