Hyperlinks and Custom Properties

T

TotallyConfused

I desperately need help with this! It is driving me crazy. In Custom
Properites, I have a label, "email" in the "value" of the details of Custom
Properties I want to enter email address with a hyperlink. So that when a
user clicks in the Value of the email (eg. "mailto:[email protected]) it
will open email. I am able to do this with a tool tip on the shape. But I
am being asked to include it in the value of the Custom Properties. Can this
be done? Please can someone please help me with this? Thank you.
 
A

AlEdlund

This was answered the last time you asked (Need help with Custom Properties
Question on 11/4/2009). If the solution is not working you may have a
problem outside of visio (as of IE7 some hyperlinks are blocked).
al
 
T

TotallyConfused

Yes I used the solutions given on 11/4/09. That does not allow me to click
in the value of the Custom Properties detail and hyperlink to email. It
works in the shape tool tip but not the Custom Properties detail. If it is
working for the shape tool tip shouldn't it be working for the Custom
Properties? Is there an example that could help? Thank you.
 
T

TotallyConfused

Thank you John for responding. I read your article on "Escaping from Save as
Web Page Links" and that is exactly what I want to accomplish with my email
addresses in my org chart. However, I made the change as indicated. I
published the org chart but I am not getting the hyperlink in the value of
the email row. I feel I am closer to accomplishing what I need to do. But
somehow I am still not doing something right. This is what I have: In the
shapesheet of one of my shapes in the org chart, I have Hyperlinks section,
Hyperlink.Row_16 - for Description - "mailto:[email protected]"; for
Address - "mailto:[email protected]".
In the Custom Properties Section, I have in my Prop.Row_13 Label - "Email";
Prompt - "no Formula"; Type - 0; Format - No Formula; Value -
"mailto:[email protected]"; SortKey - "d"; Invisibile - "no formula"; Ask -
"no formula"; LangId - 1033; Calendar - No formula.

Can you please help figure out what is wrong. Because when the org chart
opens as web page the email address is not hyperlinked.

Thank you very much in advance for any help you can provide.
 
J

John Goldsmith_Visio_MVP

Sorry, I misled you saying it should work. My JavaScript is looking for
strings beginning 'http' and so it won't find your 'mailto'. It's no
problem however. All you need to do is change the if statement from:

if (String(oPropValue.text).substring(0,4) == "http")

....to...

if (String(oPropValue.text).substring(0,6) == "mailto")

Hope that helps.

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
 
T

TotallyConfused

Thank you John for responding. However, I am still not getting a link to
email in the Value cell in the Custom Properties. I followed your
instructions to the "T". Here is what I changed as you indicated.

if (oPropValue)

{

if (String(oPropValue.text).substring(0,6) == "mailto")

{

strValueText = "<a href='" + String(oPropValue.text)

+ "' target='_blank'>" + String(oPropValue.text) + "</a>";

}

else

{

strValueText = HTMLEscape (oPropValue.text);

}

}

I even made a couple of variations by changing the substring to (0,7) ==
"mailto:"
Not working!

I do not want to give up on this as this is needed. Do I need to reference
something? There has to be a way to be able to add email address and have
user click on it in the Value cell and it links to email. Do you have an
example? Is there one out there somewhere that I can look at to see what it
is I am not doing right? I am using Visio 2003. Thank you again in advance
for any other input you can provide.
 
J

John Goldsmith_Visio_MVP

Well I've just done a quick test and it works ok here. Are you able to get
a normal hyperlink working as per the blog post? I'd start with that and if
it doesn't work then we can try and find out why. Also can you confirm what
output options you're selecting when you click the Publish button and what
browser you're using.

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
 
T

TotallyConfused

Thank you for responding. Hope I still have your attention. I was on
vacation and therefore was not able to respond. Below are the answers to
your question. I got this from the "Save as Web Page" - advanced tab:
The hyperlink does not work as indicated in the blog.
The company I work for uses Internet Explorer version 6.0.
Output format - VML
Provide alternate format for older browers - GIF
Display options Target monitor - 800 x 600
Host in Web page - None
Style sheet - Default

I hope this helps in determining why I cannot get a normal hyperlink. Thank
you.
 
J

John Goldsmith_Visio_MVP

Hi,

IE6, wow. Well I've just reverted a virtual pc image back to IE6 to check
and the mailto link does work.

If you want to zip up your web page and supporting files then I'd be happy
to take a look for you, otherwise I'm running out of answers as I'm not able
to reproduce the problem.

My address is:

JohnAddaDotHereGoldsmith
at
visualsignals.co.uk


Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
 
T

TotallyConfused

Hello, Thank you very much for sticking with me. It is very much
appreciated. Since you mentioned that everything works on your end, I
decided to start fresh and create a small testing org chart. Followed your
instructions on your website to the T and VOILA it worked I got a normal
hyperlink after publishing. I will now have this testing org chart to model.
I figured it had to be my org chart that was all messed up!

Thank you again. One last question, what Visio 2003 book do you recommend?
I need something intermediant. Everything out there is 2007. Thank you
again. Have a great day!
 
J

John Goldsmith_Visio_MVP

Glad to hear that you've got a sample to work. Now it's just a case of
tracking down the differences.

In terms of books, the main one I'd recommend for intermidiate is Developing
Visio Solutions

http://www.amazon.com/Developing-Mi...=sr_1_1?ie=UTF8&s=books&qid=1259703733&sr=8-1

It's the print version of the 2002 online one here:

http://msdn.microsoft.com/en-us/library/aa245244(office.10).aspx

I think this is one of the best resources around, and of course there's
Graham Wideman's 'Visio 2003 Developer's Survival Pack':

http://www.diagramantics.com/

....which I'd say is the experts book and still worth the money even thought
2010 is approaching.

David Parker's "Visualizing Information with Microsoft Office Visio 2007" :

http://www.amazon.com/Visualizing-I...=sr_1_1?ie=UTF8&s=books&qid=1259704101&sr=8-1

All of the above lean towards the developer side of things, so if you never
want to open the ShapeSheet and just get to grips with the various solutions
in Visio then there's the Visio Bible series

http://www.amazon.com/Visio-2003-Bible-Bonnie-Biafore/dp/0764557246

I've only read the first three which I'd certainly recommend, and doubt the
others are good too....I've just not reviewed them.

Let me know how you get on with your Org Chart.

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
 
T

TotallyConfused

Thank you for the great references. I do have one more question please. If
I needed to reference http links within the same file, how do I modify the
code below to include http? Thank you.

if (oPropValue)
{
if (String(oPropValue.text).substring(0,6) == "mailto")
{
strValueText = "<a href='" + String(oPropValue.text)
+ "' target='_blank'>" + String(oPropValue.text) + "</a>";
}
else
{
strValueText = HTMLEscape (oPropValue.text);
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top