I am releasing a Visual Web Part that I have developed that is to be used in conjunction with the Visio Web Access web part to give you an alternate ( and more customizable ) method for viewing the Shape Data property values and Hyperlinks for a shape that you select from a published Visio diagram.
Features of this web part include
- Automatically connects to the Visio Web Access web part to display Shape Data value and hyperlinks that are defined on the selected shape.
- Any Shape Data values that match email address patterns are formatted as email links to allow you to easily create an email message directly from the selected Visio shape.
- Any Shape Data values that match URL patterns are formatted as URL links allowing you to easily navigate to the URLs, even if they were not formatted are hyperlinks in the original Visio diagram.
- Hyperlinks that are automatically created when Data Linking to SharePoint lists that contain Hyperlink formatted columns are automatically updated to not include both the URL and the description property values from the SharePoint list. These column types are not handled properly when the hyperlinks are displayed in the built in Shape Information Pane.
Deployment
The web part is contained is a package that needs to be deployed using PowerShell.
Note: before running these command ensure that the Administrator service and the Timer service for SharePoint are running.
1. First add the solution to the solution store by running the following command:
add-spsolution c:\users\chris\desktop\visioshapepropertyviewer.wsp
This should succeed with the following results:
Name SolutionId Deployed
---- ---------- --------
visioshapepropertyviewer.wsp d20a6400-aaa6-4e5a-aa84-021da11c0aac False
2. Next execute the install-spsolution command to deploy the solution from the store to the farm:
install-spsolution -identity visioshapepropertyviewer.wsp -gacdeployment -webapplication http://mytestsrv/
3. Finally double check to make sure the solution was deployed to the farm:
get-spsolution
The last column will tell you if the solution was deployed to the farm or not:
Name SolutionId Deployed
---- ---------- --------
visioshapepropertyviewer.wsp d20a6400-aaa6-4e5a-aa84-021da11c0aac True
Activate the Site Collection Feature
Once the package is deployed you will need to activate it as it is configured as a Site Collection Feature.
From the Site Setting page from the site collection select ‘Site collection features’ from the Site Collection Administration section.
Scroll down to the bottom of the features list and click on the Activate button for the Visio Shape Property Viewer Web Part feature.
Configuring the Visio Shape Property Viewer web part
Once this is activated it will appear as a web part from the Insert > Web Part action when editing pages.
There is no configuration needed. You simply add this web part to any web part zone on the same page that already contains a Visio Web Access web part and the Visio Shape Property Viewer web part will automatically display the Shape Data values and any hyperlinks that are defined on the selected shape in the displayed Visio diagram.
Removal
Before removal you need to deactivate the feature on the site collection.
To remove the deployed solution you must run the following PowerShell commands:
1. First you need to uninstall the solution from the farm:
uninstall-spsolution visioshapepropertyviewer.wsp -webapplication http://mytestsrv/
Confirm
Are you sure you want to perform this action?
Performing operation "Uninstall-SPSolution" on Target
"visioshapepropertyviewer.wsp".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):a
2. Next you must remove the solution from the solution store:
remove-spsolution visioshapepropertyviewer.wsp
Confirm
Are you sure you want to perform this action?
Performing operation "Remove-SPSolution" on Target
"visioshapepropertyviewer.wsp".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):a
PS C:\Users\chhopkin\desktop>
At this point the feature has been deactivated and removed from the farm.