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.

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

browser or to the developer from within FrontPage 2003. If we hadn’t placed the<br />

Data View into the Web Zone, the drop-down menu in the top right corner would<br />

not have been available.<br />

Formatting the Data View<br />

What we have seen so far are just the basics. Data Views have many rich <strong>and</strong> powerful<br />

capabilities built into them, such as grouping, filtering, sorting, toolbars, layout<br />

<strong>and</strong> formatting capabilities, the ability to work with hierarchical data, <strong>and</strong> more. In<br />

the next few sections, we will explore formatting the Data View in more detail.<br />

One of the most powerful features of the Data View is that it allows XSL-based<br />

WYSIWYG formatting of data, thus providing multiple presentation options with just<br />

a few mouse clicks. The power of WYSIWYG lies in the fact that you can work<br />

entirely in the Design View. The powerful design tools in FrontPage 2003—such as<br />

formatting toolbars <strong>and</strong> so on—are readily available to format the output any way<br />

you want right in Design View.<br />

Applying Styles<br />

FrontPage 2003 provides several built-in styles to format the data in the Data View.<br />

Application of these styles is done using the Style link in the Data View Details task<br />

pane. Similar to the way we formatted the SharePoint Announcements list earlier<br />

in this chapter, we will continue formatting the Data View we added to the<br />

DataView.aspx page in the previous section.<br />

To apply a style to the Data View<br />

1. Ensure that the Data View Details task pane is displayed for the Data View. If<br />

it is not, you can display it by right-clicking anywhere in the Data View <strong>and</strong><br />

choosing Data View Properties in the pop-up menu.<br />

2. In the Manage view settings section at the top of the Data View Details task<br />

pane, click the Style link. This opens the View Styles dialog box.<br />

3. In the list of available HTML styles, change the selection from the Basic Table<br />

to the Two Column Repeating form with border style (which is the fifth choice<br />

in the list). The style name shows as a ToolTip when you hover the cursor over<br />

the style.<br />

4. Click the Options tab <strong>and</strong> in the Record Sets section at the bottom of the dialog<br />

box, change the value in the text box to the right of Display items in sets<br />

of this size from 10 to 4. Click the OK button to apply the changes.<br />

5. You might be warned that changing the view style will remove any custom formatting<br />

<strong>and</strong> asked if you want to continue. Click the Yes button.<br />

6. Save the DataView.aspx page <strong>and</strong> then view it in your browser. (See Figure 32-51.)

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

Saved successfully!

Ooh no, something went wrong!