ENTERPRISE

SharePoint 2010 : Business Intelligence - Visio Services

7/21/2011 11:41:03 AM
Visio is a tool that ships with Microsoft office and allows users to create diagrams. We have been creating diagrams since we were kids and since we were prehistoric apes. Diagrams are an excellent way to communicate a complex concept. Even though high-level languages have evolved, sometimes a picture does speak a thousand words.

Visio helps you create beautiful looking diagrams, but until the last version of SharePoint these diagrams were mostly static pictures. That is about to change starting this version. In SharePoint 2010, there is a component of SharePoint called as Visio Services. Visio Services allows you to view any of your diagrams created in Visio, right through the browser. Also, it allows you to give that diagram life. In other words, the diagram can show live data by formatting itself in different ways or presenting indicator icons depending upon the state of the data. The data can come from various sources. Let's look at an example.

I am a really busy guy, so I like to maintain all my tasks in a tasks list in SharePoint. Figure 1 shows my tasks list in SharePoint after I populated some tasks in it.

Figure 1. My simple task list

Let's say I intend to communicate to everyone in a graphical way the percent complete on all these tasks. What I intend to do is present these tasks using a web browser interface served in SharePoint. To do this, create a blank Visio diagram in Visio 2010, and start by inserting a new container under the insert button from the ribbon. Inside this container drag and drop three "To do" shapes which you will find under the Schedule\Calendar stencil. If you can't find the "To do" shape, just drag and drop any other shape. You're just learning here, so you don't need to be all artsy about it. At this point, your Visio diagram should look like Figure 2.

Figure 2. My Starter Visio Diagram

Next, click the data tab then click the link data to shapes button in the ribbon. In the ensuing wizard that pops open, choose to import data from the tasks list using "Microsoft SharePoint foundation list" as your choice data source.

At the bottom of your Visio window, you should see the various rows that have been pulled from the linked data source. This can be seen in Figure3.

Figure 3. The linked datasource

As the tooltip prompts you, drag and drop each one of the three rows onto the three "to do" icons you had placed earlier. Dragging and dropping each one of these three rows one by one will link the row to the target shape that you drag drop the row to. It will also create a default data graphic for you, as shown in Figure 4.

Figure 4. The linked datasource showing data in the visio diagram

The default data graphic shows the title and start date. The default data graphic is fine, but I'd like it to be little bit more interesting. For example, let's show some decent formatting. Therefore, maybe the text should be a little bit wider and also show the percent complete as a progress bar.

In order to do so, click the data graphics button in the ribbon and choose to create a new graphic. In the new data graphic window that pops open, click the new item button. Choose to specify the new item being driven from the data field percent complete, displayed as a data bar, in the style of progress bar. This can be seen Figure 5.

Figure 5. Customizing the data graphic

Repeat the previous step for the title and start date columns as well. The title and the start date columns are to be shown as text. You will also have to play a bit with the width. The final changes are shown in Figure 6.

Figure 6. Customizing the data graphic

Finally, click OK and apply this newly created data graphic to the three shapes that you had earlier on the screen. After some formatting, aligning, and final touches on color, your Visio diagram should look like Figure 7.

Figure 7. Your final visio diagram

Go ahead and save this on your disk. Next, you need to make some changes to your SharePoint site collection. Activate the SharePoint enterprise features under site collection because Visio Services is a part of those enterprise features. Also, create a document library called "Visio diagrams".

Next, in the backstage view of Visio 2010, click on Save and Send\Save to SharePoint\Save as Web Drawing (Data-refreshable drawing for use with Visio Services on SharePoint). Choose to save it at http://sp2010/Visio Diagrams. Save the file as "Sahils Tasks.vdw". Saving the file will immediately open this Visio diagram in the web browser. If it doesn't, you need to activate the SharePoint enterprise features on your site collection, and you should have created a document library called "Visio Diagrams".

On the default.aspx page of your site collection, choose to drop a "Visio Web Access" WebPart. Configure this WebPart to point to the http://sp2010/Visio Diagrams/Sahils tasks.vdw file. Also, you may need to configure the height width, etc., of this WebPart. Once the WebPart is configured, you should see it running in the web browser.

This looks very good! So let's say that I've started on task one, and let's say that I'm only 25% complete with that task. Therefore, I go to the tasks list and update the percent complete of this task to 25%. Now I come back to Visio Services diagram running in the browser. Note that the percent complete is beautifully reflected on the diagram, as shown in Figure 8.

Figure 8. My task list in a visio diagram running in SharePoint

As you can see, I've barely started stopping the Icelandic volcano that is disrupting European air travel at the moment. But, hopefully, that problem will figure itself out. Let me start talking about Excel Services.

Other  
  •  Exchange Server 2010 : Perform Essential Database Management (part 3) - Manage Database Settings
  •  Exchange Server 2010 : Perform Essential Database Management (part 2) - Manage the Transaction Log Files
  •  Exchange Server 2010 : Perform Essential Database Management (part 1) - Manage the Database Files
  •  Architecting Applications for the Enterprise : UML Diagrams (part 3) - Sequence Diagrams
  •  Architecting Applications for the Enterprise : UML Diagrams (part 2) - Class Diagrams
  •  Architecting Applications for the Enterprise : UML Diagrams (part 1) - Use-Case Diagrams
  •  SharePoint 2010 : Creating and Managing Workflows - Monitoring Workflows
  •  Exchange Server 2010 : Administering Mailbox Content - Monitor and Restrict Communication (part 2) - Apply Common Monitoring and Restriction Scenarios
  •  Exchange Server 2010 : Administering Mailbox Content - Monitor and Restrict Communication (part 1) - Perform Basic Message Policy Configuration
  •  Exchange Server 2010 : Administering Mailbox Content - Protect and Disclose Information
  •  SharePoint 2010 : Workflow Modeling and Development Tools (part 2) - Visual Studio 2010 & Workflow Modeling Tools Comparison
  •  SharePoint 2010 : Workflow Modeling and Development Tools (part 1) - Microsoft Visio 2010 & SharePoint Designer 2010
  •  SharePoint 2010 : Creating and Managing Workflows - Workflows in SharePoint 2010
  •  Exchange Server 2010 : Meet Message Retention Compliance (part 3) - Keep a Record of Email Communications
  •  Exchange Server 2010 : Meet Message Retention Compliance (part 2) - Archive Email
  •  Exchange Server 2010 : Meet Message Retention Compliance (part 1) - Enforce Records Management
  •  Exchange Server 2010 : Maintaining Reliability and Availability - Recover Data
  •  Exchange Server 2010 : Maintaining Reliability and Availability - Back Up Exchange
  •  Exchange Server 2010 : Utilize the Availability Options for Servers Based on Role (part 3) - Implement Redundant Transport Servers
  •  Exchange Server 2010 : Utilize the Availability Options for Servers Based on Role (part 2) - Increase Mailbox Database Availability
  •  
    Top 10
    Windows Server 2003 : Domain Name System - Command-Line Utilities
    Microsoft .NET : Design Principles and Patterns - From Principles to Patterns (part 2)
    Microsoft .NET : Design Principles and Patterns - From Principles to Patterns (part 1)
    Brother MFC-J4510DW - An Innovative All-In-One A3 Printer
    Computer Planet I7 Extreme Gaming PC
    All We Need To Know About Green Computing (Part 4)
    All We Need To Know About Green Computing (Part 3)
    All We Need To Know About Green Computing (Part 2)
    All We Need To Know About Green Computing (Part 1)
    Master Black-White Copying
    Most View
    How To Buy… A Tablet PC (Part 2)
    Windows Server 2008: Using OUs to Delegate Administration
    IIS 7.0 : Managing Configuration - Backing Up Configuration, Using Configuration History & Exporting and Importing Configuration
    In Detail – Humax DTR-T1000
    G.skill ARES DDR3 2133MHz 8GB Kit
    IBGStar Blood Glucose Meter Kit
    Windows Server 2008 : Stopping and Starting Services with the net Command, Manipulating Services with sc
    Fujifilm Released The First Version Of CSC
    BizTalk 2006 : Editing and Resubmitting Suspended Messages (part 2) - Pseudo-Walkthrough to Perform Edits and Resubmits
    Huge Screen Supertest (Part 5) - ASUS PA238Q & ASUS VG278H
    SharePoint 2010 : SharePoint Fundamentals (part 1) - Sites and Site Collections
    Group Test: HTC One X vs. Sony Xperia U vs. Samsung Galaxy S III vs. Huawei Ascend P1 (Part 1)
    ASP.NET 4 : Data Source Controls (part 1) - The Page Life Cycle with Data Binding, The SqlDataSource, Selecting Records
    Panasonic Micro Four Thirds Lumix G5
    Determine Your Need for Server Core
    Sony: From Vaio to Vita
    The Future Revealed (Part 1)
    SQL Injection : Code-Level Defenses - Encoding Output
    Windows Server 2003 : Securing and Troubleshooting Authentication
    AMD Radeon HD 7950 3GB vs. Nvidia GeForce GTX 660 Ti 2GB vs. Nvidia GeForce GTX 670 2GB (Part 2)