16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

918 Part IX: Maintaining a Server in Windows SharePoint Services<br />

Add Data View<br />

The cust-ord.xml file contains data that is hierarchically organized. We will now select<br />

data from various places in the hierarchy <strong>and</strong> create a Data View that presents the data<br />

in the desired way. Specifically, we want to display the name of each company <strong>and</strong><br />

the names, quantity, unit price, <strong>and</strong> total price of the products they have ordered.<br />

In doing so, we want to preserve the hierarchy—that is, we want the product<br />

information for a given company to appear under that company name. Add a new<br />

page to the root directory of the FrontPage 2003 project, <strong>and</strong> name it Hierarchy.aspx.<br />

To add an initial Data View of the XML to your Web page<br />

F32XR63<br />

1. From within FrontPage 2003, open the empty page Hierarchy.aspx in Design<br />

mode. Click Insert Web Part Zone from the Data menu to create Zone 1 at<br />

the top of the empty page.<br />

2. Click Insert Data View on the Data menu to open the Data Source Catalog<br />

task pane.<br />

3. Exp<strong>and</strong> the XML Files folder by clicking the plus sign (+), exposing the<br />

cust-ord.xml data source that we created earlier in the section about the Data<br />

Source Catalog task pane.<br />

4. Position the cursor on the data source, <strong>and</strong> click the right arrow at the end of<br />

the name.<br />

5. Click the Show Data option on the resulting context menu to open the Data<br />

View Details task pane. (See Figure 32-63.)<br />

Figure 32-63 Data View Details task pane showing XML data

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!