Logo
HOW TO
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows 7

Microsoft Visio 2010 : Linking External Data to Shapes (part 5) - Using Link Data - Preparing a Master for Link Data , Importing Data for Link Data

3/20/2014 3:07:37 AM

4. Using Link Data

If you have Visio 2010 Pro or Premium, you also have access to the Link Data feature. Using it is not only much easier than using the Database Wizard, but it gives you more data choices. In addition to OLEDB and ODBC data sources, Link Data can hook up to data stored in Excel, Access, SharePoint lists, and SQL Server.

Link Data works in only one direction: External data is brought into shapes, but shapes can’t change external data. You can, however, link data from multiple sources to a single shape.

If you’re not sure which edition of Visio you have, take a quick look at the Ribbon. If you see the Data tab, then you have Visio Pro or Premium, and Link Data is available. You can also go to the Backstage area and click Help. In the upper-right corner, your edition is listed under Product Activated.

Preparing a Master for Link Data
1.
Continue with Ch7 Shape Data.vsd.

2.
Create a new, blank page and name it Link Data.

3.
Copy a shape from the Light Bulbs page.

Note: This shape shouldn’t be an instance of any master; it still has the default internal row naming for its Shape Data fields (that is, Prop.Row_1, Prop.Row_2, and so on) and it doesn’t have an ID field.

4.
Clear or set generic values for the bulb’s Shape Data fields.

5.
Create a new master in the Document Stencil.

a. Make sure that the Document Stencil is visible by checking More Shapes, Show Document Stencil.

b. Drag the light bulb shape into the Document Stencil.

c. Click on your new master and change the name from Master.X to Light Bulb LD.

You use this master with the Link Data features in the following steps. Unlike Light Bulb DBW, this master is not linked in any special way to external data.

Now you can import the Excel data. Instead of an elaborate (long!) set of steps to establish the connection, Link Data shows the data inside Visio in the External Data window and enables you to link to shapes using drag and drop.

Importing Data for Link Data (Pro and Premium Only)
1.
Click the Data tab on the Ribbon.

2.
Click Link Data to Shapes in the External Data group. The Data Selector window appears. You can see the Data Ribbon in Figure 7.

Figure 7. The Data tab and External Data window are two key elements in Link Data. Here, you see a data record being dragged onto a shape. A data link is being created and is denoted by the special highlighting around the shape and the chain-link icon on the mouse cursor.

3.
Select Microsoft Excel Workbook and then click Next.

4.
Browse to the location of Light Bulb Data.xlsx and then select it. Click Next.

5.
For the worksheet or range, select ModelTypePower from the drop-down list. Notice that the Data Selector also sees Sheet1$ as a data range. If you use Link Data, you don’t need to define a named range as for the Database Wizard, but it is nice to see a meaningful name nevertheless.

6.
Make sure that First Row of Data Contains Column Headings is checked and then click Next.

7.
In the Connect to Data screen, you can select columns and specific rows from the data source to import. For now, leave the default (All Columns) and (All Rows) settings as they are and then click Next.

8.
In the Configure Refresh Unique Identifier screen, an ID field is recommended as the key into your data. Make sure that this is checked, click Next, and then click Finish.

The External Data window appears beneath the drawing window, filled with familiar data from the Light Bulb Data Excel file. Now you’re ready to link the data to shapes.

Other -----------------
- Microsoft Visio 2010 : Working with Data - Creating Reports (part 3) - Using Reports with Other Documents
- Microsoft Visio 2010 : Working with Data - Creating Reports (part 2) - Grouping and Totaling Items in a Report
- Microsoft Visio 2010 : Working with Data - Creating Reports (part 1) - Introducing the Report Definition Wizard
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 5) - Shape Data Labels versus Names
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 4) - Displaying Shape Data in Shape Text
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 3) - Saving Sets of Shape Data Fields
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 2) - Choosing Shape Data Field Types , Creating Lists and Controlling Formatting
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 1) - Adding Simple Data Fields
- Microsoft Visio 2010 : Working with Data - Introducing Shape Data Fields
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 7)
 
 
REVIEW
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
 
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
Top 10
- Microsoft Excel : How to Use the VLookUp Function
- Fix and Tweak Graphics and Video (part 3) : How to Fix : My Screen Is Sluggish - Adjust Hardware Acceleration
- Fix and Tweak Graphics and Video (part 2) : How to Fix : Text on My Screen Is Too Small
- Fix and Tweak Graphics and Video (part 1) : How to Fix : Adjust the Resolution
- Windows Phone 8 Apps : Camera (part 4) - Adjusting Video Settings, Using the Video Light
- Windows Phone 8 Apps : Camera (part 3) - Using the Front Camera, Activating Video Mode
- Windows Phone 8 Apps : Camera (part 2) - Controlling the Camera’s Flash, Changing the Camera’s Behavior with Lenses
- Windows Phone 8 Apps : Camera (part 1) - Adjusting Photo Settings
- MDT's Client Wizard : Package Properties
- MDT's Client Wizard : Driver Properties
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro