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 6) - Using Link Data - Linking Data to Shapes Using Link Data

3/20/2014 3:08:32 AM
Linking Data to Shapes Using Link Data (Pro and Premium Only)
1.
Drag Light Bulb LD from the Document Stencil and drop an instance on the page.

2.
Link a data row to a shape. Select a row in the External Data window and drag to the shape. Figure 7 shows this in action.

3.
If you see some extra text and lines on your shape, a Data Graphic was probably applied.Remove them and turn off auto-application by doing this:

a. Leave the data-linked shape selected.

b. On the Data tab in the Display Data group, expand the Data Graphics drop-down, and click the item under No Data Graphic. The lines and text disappear.

c. Turn off the automatic application of Data Graphics when data linking. Revisit the Data Graphics drop-down and uncheck Apply after Linking Data to Shapes at the bottom of the list.

4.
In the External Data window, note the link icon next to the row that you just dragged. This indicates that one or more shapes in the drawing are linked to this row.

5.
Practice tracing links between data rows and shapes.

a. Create several copies of the data-linked light bulb shape.

b. Deselect all shapes in the drawing.

c. Right-click the linked row in the External Data window and then click Linked Shapes. You should see several entries.

d. Click one of the subitems in the Linked Shapes menu. The corresponding shape is selected in the drawing window.

6.
Unlink shapes and data.

a. Right-click one of the data-linked light bulbs in the drawing window.

b. Choose Data, Unlink from Row. The shape is no longer linked.

c. Right-click the row in the External Data window and click on Linked Shapes. The list should have one fewer item.

d. Alternatively, you can right-click a linked row in the External Data window and choose Unlink. This breaks links to all shapes at once.

7.
Link multiple rows to multiple shapes.

a. Select the Light Bulb LD master in the Document Stencil window.

b. Hold down the Ctrl key and click on several rows in the External Data window so that multiple rows are highlighted.

c. Drag the selected rows into the drawing window. An instance of the selected master is created for each row of data and linked to that row, as shown in Figure 8.

Figure 8. Linking multiple rows to multiple shapes. Select a master first, select multiple rows of data second, and then drag and drop!

8.
Save the drawing.

When you use Link Data, Visio tries to map the column names in your data source to the Labels of your Shape Data fields. If it finds a match, the Shape Data is linked to the database record. If not, Visio adds a new Shape Data field to your shape when you link.

This mapping is case sensitive. So if your Light Bulb shape has the Bulb Type field and your Excel sheet has a Bulb type column, no match would be found. Your shapes would end up with an extra (and unwanted!) Bulb type Shape Data field.


You see this with ID as well. The Light Bulb shapes have no Shape Data field for ID, but it is added automatically when you drag a record from the External Data window onto a shape.

Recall the earlier discussions about Shape Data row names like Prop.Row_1 and Prop.Row_2. With Link Data, you don’t have to worry about this, since data is mapped to Labels, not internal ShapeSheet row names.


Clearly, using Link Data is much easier than using the Database Wizard. The picture gets even prettier when you throw in Data Graphics, discussed in the next section.

Here are a few other things you can do with Link Data and the Data tab:

  • Refresh the data— The Refresh All button provides some options for refreshing the data, when the external data changes. You can set the refresh to happen at specific time intervals, choose to overwrite changes to Shape Data with values from the data source, and be presented with refresh choices whenever the document is opened.

  • Automatically link— If you have shapes that represent real-world objects, they might naturally have IDs that can be used to automatically pick up imported data using Auto Link. A classic example is a map of the United States. It makes sense to give each state shape a Shape Data field that holds the state’s name. Auto Link then can use this name to correctly map each shape to a record in a data set concerning states. The Automatically Link button leads you through a series of steps to properly match an identifying Shape Data field with a key in the data.

  • Use additional data— You can import more than one data source using Link Data to Shapes. Each source shows on its own tab in the External Data window.

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