Visio Hyperlinks not working in SharePoint 2010

Started by rknight, December 10, 2014, 06:25:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rknight

Hello,

I published a Visio 2010 SP flowchart (saved as a web drawing .vdw) to a SharePoint 2010 environment with Visio Services enabled. I created a Web Part page containing a Visio Web Access Web Part and a Content Editor Web Part for Javascript code (Javascript code for "onclick" hyperlinks). The Flowchart contains 64 pages.

The Problems:

1. Hyperlinks work perfectly from Pages 1-11, but do not work correctly from Pages 12-64.
2. Hyperlinks on Pages 12-64 go to the wrong predefined hyperlink pages. 


***Everything work fine in Visio Client. Issue started once published to SharePoint***

Any help will be greatly appreciated

Thank you  :)

rknight

Just realized the javascript I used for onclick caused the hyperlinks to break after the 9th page in my flowchart.  I found the code for onclick on an old forum

https://social.technet.microsoft.com/Forums/itmanagement/en-US/ef224758-b613-48ca-8c19-8f6f3b02bb9e/how-to-single-click-hyperlink-in-visio-web-access-webpart-to-go-to-the-url .

I reviewed the code but did not notice anything that would cause the issue. I have attached the .js file for viewing. Any help will be greately appreciated. Thank you

Paul Herber

I don't know javascript too well, but I've worked with many languages over the years .. so here goes ...
Look at line 104 of the VisioClick.js file. It's looking for a text string being contained within another, but I think the compare is incorrect.
If you add some debugging code and print out vwaPageId, vwaPageName and vwaPages on each loop you will see what is happening.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

rknight

Paul,

Thank you for the feedback. I've taken your advise. I am currently running a debug.