The SharePoint Way


The solutions described in the previous section can be provided with the WSS 3.0 (that is right, the free version of SharePoint). To make the solution complete, you need MS Office 2007, but even with earlier Office versions, you can go a long way. The recommendation is that users who actively update documents have MS Office 2007, or at least MS Office 2003, but users who read and act on these documents can do so with MS Office 2002 or even MS Office 2000.

The features described in this section are available for both MOSS and WSS, meaning that this can be done in any type of site, including intranet portal sites and team sites. But you may remember from previous chapters that collaborating should be done in team sites, so even if you have MOSS installed, you will most likely end up implementing these solutions in a team site.

The basic structure for file and document management is SharePoint's Document Libraries. It provides you with the following built-in features:

  • q Storing any type of file: Note that there is a global setting in SharePoint that controls what file types that SharePoint does not allow; see the following section on how to change that setting.

  • q Built-in version history: This is disabled by default, but when enabled it automatically keeps track of all updates of each file in the document library. You can choose between a simple version history, just keeping track of the time and date for each version, or a version history, keeping track of both major (1.0, 2.0) and minor (1.1, 1.2) versions.

  • q Add custom file properties: You can add any number of columns to a document library to describe properties or any type of information you want about each file.

  • q Add custom views: You can create definitions on how to sort and present the files in this document library; these views may be personal or publicly available.

  • q Built-in file locking: Using the standard type of checkout/checkin capabilities found in all DMSs, the user can lock a file for any period of time, regardless of whether the file is open or not.

  • q Create Document Workspace: This automatically makes a copy of a file and builds a subsite around it. This site, or workspace, can then have one or more users who are allowed to work with this file. When they are done, the new version of the document will be published back to its original location.

  • q Send notifications when updated: There are two ways to do this: Use the Alert feature to send an e-mail when a specific document or folder is modified, or make the document library an RSS Feed to MS Outlook 2007, thus sending an RSS posting whenever there is a new document added to the library.

  • q Undelete: If a document or folder in the document library is deleted, it can be restored by the user directly, using the built-in undelete feature.

  • q Workflow: Create an workflow that triggers when a new document is created or a property is changed. For example, anytime a quote is created, the sales manager will be informed.

  • q Approval: You can enforce the rule that all new files and documents must be approved before going public.

  • q Policies: Define policies and rules for documents. For examples, all documents older than six months should be converted to a PDF file and moved to another location. Or you can audit every action taken on a document, such as read, edit, or delete but also if the file is moved or copied. (Requires MOSS 2007 Enterprise Edition.)

  • q Content types: This is a very advanced feature that allows you to create any number of document templates for a document library, including special workflow settings, property columns, and document policies.

  • q Item-level security: Each file and document will inherit the permission setting of its parent, that is, the document library itself, or a folder in the document library. But you can also set the permission for a specific document, if necessary. You can also set permissions to a specific folder in the document library; its setting will be inherited by the documents stored in that folder.

  • q Fully integrated with Office 2007: All of these features can be used with the web client interface or an MS Office 2007 application, such as MS Word, MS Excel, or MS PowerPoint.

So there you have it - everything you need to build a solution for more effective document management. And remember that all of this is available not only for MS Office documents but for any file type (for example, PDF files, ASCII text files, and CAD files).

Allowed File Types

There is a global setting that will affect what file types users are allowed to store in any document library. Note that there is no way to control an individual document library in SharePoint 2007. How to view and manage these file types is demonstrated in the Try It Out below.

Try It Out Manage Disabled File Types

image from book
  1. Start SharePoint Central Administration, and open the Operations page.

  2. Click Blocked file types.

  3. On the following page, be sure to check that the Web Application list lists the one used by your intranet or team site.

  4. In the example, you will see a list of 81 blocked file types (see Figure 10-1). If a user tries to add a file of any of these file types, he or she will receive this error message: "The following file(s) have been blocked by the administrator: <filename>.<blocked file type>".

    image from book
    Figure 10-1

  5. If you want to enable a blocked file type, just mark that line and press Delete. If you want to block a new file type, add it to a new line. When done, click OK to save and close this page.

image from book

The 81 file types that are blocked by default are shown in the following table.

Table 10.2: File Types Blocked By Default
Open table as spreadsheet

File type

File type

File type

File type

ade

adp

app

asa

ashx

asmx

asp

bas

bat

cdx

cer

chm

class

cmd

com

Config

cpl

crt

csh

dll

exe

fxp

hlp

hta

htr

htw

ida

idc

idq

ins

isp

its

jse

ksh

lnk

mad

maf

mag

mam

maq

mar

mas

mat

mau

mav

maw

mda

mdb

mde

mdt

mdw

mdz

msc

msi

msp

mst

ops

pcd

pif

prf

prg

printer

pst

reg

rem

scf

scr

sct

shb

shs

shtm

shtml

soap

stm

url

vb

vbe

vbs

wsc

wsf

Wsh

   

The reason that these file types are blocked is security. They can each be used to activate some sort of malicious action, such as a virus, Trojan horse, or worm. If you want to replace the shared file system with SharePoint's document libraries, you may need to unblock some or all of these file types.

Important 

Before you unblock these file types, it is strongly recommended you implement a SharePoint-enabled antivirus solution, just as you would do in an ordinary file system.

Creating Document Libraries

To start with, you need a document library. Contrary to previous SharePoint versions, you can use all of these document management features on any document library, regardless of whether it is a MOSS site, or a WSS team site. However, since a team site is most commonly used for file and document management, this is what you will use in the examples below. Several site templates, such as Team Sites, already contain one document library named "Shared Documents." Either you start with this or you create a new one, using the steps in the following Try It Out.

Try It Out Create a New Document Library

image from book
  1. Go to the site where the new document library will be created.

  2. Click the link Site Actions image from book Create at the top of this page.

  3. To create a standard document library, click Document Library in the Libraries section, and enter its properties in the following page (see Figure 10-2):

    image from book
    Figure 10-2

    1. Name: Enter a name for this document library that is unique in this site.

    2. Description: Enter a description of this document library.

    3. Navigation: Select Yes if you want this document library to be listed in the left pane of this team site; this pane is referred to as the Quick Launch bar. If you select No, you can find it by clicking the link Documents and Lists on the team site. You can also add it as a Web Part to display its content directly to the team.

    4. Document Version History: Select Yes to activate version history for all documents in this library or No to only save the latest version of each document. You can later change this setting for existing libraries. Note that if you activate the version history here, it will default into the simple version history that stores the date and time for each version. If you want to keep track of major and minor versions, then you must later open the configuration page for this document library and change the version settings.

    5. Document Template: Select the document that will be used as a template when a user clicks the New Document button on the document library page.

    6. Click Create to close this page and create the document library.

image from book

By default, a document library can only contain one single document template. However, using SharePoint's feature Content Types you can add multiple document templates, as described later in this chapter. The available default templates are listed here and allow the creator of this library to choose between the old file format, used in MS Office 97-2003, and the new format introduced in MS Office 2007. Note that the selected template file will be stored in the subfolder Forms in the document library. To create a new document based on this template, the user clicks New in the document library.

  • q None: Use this option if you want no template at all, for this document library.

  • q Microsoft Office Word 97-2003 document: Create a MS Word file based on the file format used by Word 97-2003, and the content of the file Template.doc. You can edit Template.doc if you want all new files to start with a specific content.

  • q Microsoft Office Excel 97-2003 spreadsheet: Create a spreadsheet file based on the file format used by MS Excel 97-2003, and the content of the file Template.xls. Edit Template.xls if you want all new files to start with a specific content.

  • q Microsoft Office PowerPoint 97-2003 presentation: Create a PPT file based on the file format used by PowerPoint 97-2003, and the content of the file Template.pot. Edit Template.pot if you want all new files to start with a specific content.

  • q Microsoft Office Word: Create a MS Word file based on the file format used by Word 2007, and the content of the file Template.docx. You can edit Template.docx if you want all new files to start with a specific content.

  • q Microsoft Office Excel spreadsheet: Create a spreadsheet file based on the file format used by MS Excel 2007, and the content of the file Template.xlsx. Edit Template.xlsx if you want all new files to start with a specific content.

  • q Microsoft Office PowerPoint presentation: Create a PPT file based on the file format used by PowerPoint 2007, and the content of the file Template.potx. Edit Template.potx if you want all new files to start with a specific content.

  • q Microsoft Office OneNote section: Create a MS OneNote file based on the content of Template.one. Edit Template.one if you want all new files to start with a specific content.

  • q Microsoft Office SharePoint Designer Web page: Starts the SharePoint Designer tool, and opens the file Template.htm. Edit Template.htm if you want all new files to start with a specific content.

  • q Basic page: Create a new basic web page in this site. Note that all extra web pages for a SharePoint site will be stored as files in a document library. This page will have the Content Editor Web Part added to allow you to enter information on this page in rich-text format, including tables and pictures.

  • q Web Part Page: Click New Documents to create a new Web Part page with a specific layout in this site. Just like basic pages, these Web Part pages must be stored in a document library.

The last two options, Basic page and Web Part Page, may need some extra clarification. All team sites consist of one single Web Part page named Home. You can create additional pages for the team site, both standard HTML pages and Web Part pages; these extra pages are stored as files in a document library in this team site. To actually display a page on the site, the user must open its page file. In order to make it easier for the user to see what extra pages exist and open them, you can use either of these methods, on the Home page for the team site:

  • q Change the navigation settings for this site to show pages (if possible, depending on the site template), or add a link to each page to the Quick Launch bar.

  • q Display these page files on the start page for this site by using the Web Part for that document library. Make sure to give these page files descriptive names so that the user understands what they are used for.

  • q Use the Links Web Part, and create links to these page files. Use descriptive link titles so that the user understands what the pages are used for.

Important 

Note that the extra pages will not be displayed in a tab view. You can use page layers and tab buttons to create this view, as described in Chapter 13.

A relevant question now is "How many document libraries do I need?" And the answer is: Start with one single library and use it for everything until one of the following scenarios happens:

  • q You need to activate version history for some, but not all, files: Since this feature is set per library, not per file, you must create a separate document library for each set of files, unless you don't mind having version history active even for those files that don't really use it. The price will be that more disk space is required on the SQL Server.

  • q You need content approval for some, but not all, files: This feature is also set per library. If only some of the files need this feature, create a separate document library for them.

  • q The number of files is more than 2,500 per folder: To ensure optimum performance, no folder in a document library should contain more than 2,500 files, and the total number of files should be less than 3,000,000.

Note that one document library can host more than three million files, as long as they are divided into a number of folders. When you exceed this number, you must divide them into several libraries to ensure the optimum performance when listing and updating the files. After all, SharePoint is a web application.

Understanding Columns and Views

The most common mistake when moving from a file system to SharePoint is to create one document library for each main file share structure; for example, in the file system depicted earlier in this chapter, you would end up with one library named "Projects" and another named "Customers." That might sound like a good idea, since it will resemble the old environment. But you should first test if you can store all files in one library and then use columns and views to sort them into Projects and Customers, to mimic the old file structure. To do this, you need to create custom columns for the document library, and then build views that use these columns to sort and filter the list of files. The biggest advantage of using views, instead of a folder structure, is that views are dynamic and easy to create and modify. You can have more than one view for presenting and sorting files, to meet different needs, depending on what the user wants to see.

Document Library Columns

This feature makes it possible to describe the file's content without using the filename. Actually, when you start using these columns, you may even start to wonder why you need filenames at all. When you add columns to a document library, you have a number of types to choose from. It is important to use the correct column type, since it will affect what you can to with the column, especially when creating views. The following table displays all the default column types and how to use them:

Open table as spreadsheet

Column Type

Description

Examples

Single line of text

Allows the author to enter one text line with up to 255 characters.

Can be used for short descriptions or comments.

Multiple lines of text

Allows the author to enter up to 1,000 lines of text of 80 characters each.

Can be used for longer descriptions.

Choice

Allows the author to select from more than 100 predefined choices.

Create a list of Document Types, such as "Info, Quote, Contract," or Customers, such as "Ericson, H&M, Ford."

Number

Allows the author to enter a number with or without decimals or in percent.

Enter the number of products in stock, the weight of a patient, a zip code, and so on.

Currency

Allows the author to enter a number that will be treated as currency. You can define what format is to be used.

Use for prices, income, net results, and so on.

Date and Time

Allows the author to enter a date and optional a time value.

Use for contract dates, defining time periods, birth dates, and so on.

Lookup

The value displayed in this field will come from another list or library on this site.

Use for displaying a list of all members for the site, a customer name retrieved from a Customer Contact list, or a Product list on the site.

Yes/No

The author can select Yes or No.

Use it for binary options, such as "This document is public," or "Quote is active."

Person or Group

Allows the author to choose a user or a group, from Active Directory or a given SharePoint group.

Use this to pick out a user that responsible for a document.

Hyperlink

The author can enter an HTML URL address; this address can be displayed as a link or formatted as a picture.

Use this to add links to external information, or to display pictures of products or people.

Calculated

This field is automatically filled with a calculated value. The author will not enter anything in this field. You can use mathematical formulas and logical operators.

Calculate the total sum based on two other "Number" columns, or the date 30 days from now.

Business data

This field will be populated with data retrieved from an external data source.

Get the customer list from an external customer database, or list the products available in a specific segment.

The column type Calculated is similar to a calculated cell value in MS Excel. For example, say that you have two columns named "Price" and "Pieces" and you want a third column that calculates the total sum based on Price × Pieces. A reference to another column is defined by entering the name within [ ]; for example, [Price] and [Pieces]. The formula would then be:

     [Price]*[Pieces] 

Another example would be to display text based on a given limit. For example, if the value in the column Sales is higher than Expenses, you want a third column to display "Nice business"; if not, it should display "You are losing money!" The formula for this will look like:

     IF([Sales]>[Expenses],"Nice business","You are losing money!") 

The result would then look like Figure 10-3.

image from book
Figure 10-3

You can find a lot more information about calculated columns using the Help window and opening the link Formulas and functions (see Figure 10-4).

image from book
Figure 10-4

As usual, examples are the best way of demonstrating how to work with columns in document libraries. Say that you have a list of files and you need describe the document type (Quote, Order, and Contract) and security class (Public, Internal only, and Secret) for each of these files. Instead of creating files with names such as Quote_Internal_Ford.doc, you want to do it the SharePoint way. The following examples and descriptions assume that you are working with a WSS site based on the Team Site template.

Try It Out Create Columns for Document Libraries

image from book
  1. Log on as a user with Designer or Owner rights for the site.

  2. Click the document library name (for example, Shared Documents), to display its content along with all the features available for that document library.

  3. Click the menu Settings image from book Create Column. A new web form opens where you can configure this column. (see Figure 10-5). Enter these settings:

    image from book
    Figure 10-5

    1. Column name: Doc Type. This will be a column for storing the document types.

    2. The type of information in this column is: Choice.

    3. Description: "This column is used to describe the document type."

    4. Type each choice on a separate line: Enter the following values; make sure to enter one choice per row: Quote; Order; Contract.

    5. Display choices using: Drop-Down Menu.

    6. Allow "Fill-in" choices: No.

    7. Default value: Clear this text box; you don't need a default value this time.

    8. Click OK to save this web form. The first column is now done!

  4. You need a second column as well; click Settings image from book Create Column again, then enter these values:

    1. Column Name: Security Class.

    2. The type of information in this column is: Choice.

    3. Description: "This column is used to define the security class for this document."

    4. Type each choice on a separate line: Public; Internal only; Secret.

    5. Default value: Clear this box.

    6. Click OK to save this web form. The second column is now done!

  5. To see all created columns click Settings image from book Document Library Settings. All existing columns are listed in the section Columns. To modify or delete a column, click its name to open its configuration. To add a column click Create column at the end of the section; this is an alternative way to create a column as opposed to the method used in step 3 above.

  6. Near the top of the page, click on the breadcrumb trail with the library name, for example Shared Documents, to return. Note that the two new columns are listed to the far-right side of the header line. All new columns will show up like this, but you can easily change their position, as you will see in just a few minutes.

  7. It is time to add some documents to see how this works. Click on Upload and a web form is displayed. Next click Upload Multiple Files to display a window similar to Windows Explorer. Select the folder and the files to be uploaded, then click OK. You will get a dialog box, asking you if you want to upload these files; click Yes. The selected files are uploaded; the document library then opens again. Since you did not configure any default values for the two new columns, none of the uploaded files will have any value for those columns. To set these columns do this:

    1. Open the quick menu for the first uploaded file, and select Edit Properties.

    2. Use the pull-down menu for the column Doc Type and set its value to Contract. Then set the column Security Class to Internal only.

    3. Click OK to save and close this page.

  8. If you want to update a number of files at the same time, also known as "bulk update," you can use another, faster method: Click Actions image from book Edit in Datasheet. This will open a view of the document library that looks much like an MS Excel spreadsheet, but it is in fact an ActiveX component, so the client must have MS Excel 2007 installed locally in order to use it. Now you can change any cell modifiable value, such as the Name, Doc Type, and Security Class. To return to the standard view, click Actions image from book Show in Standard View.

    Important 

    When updating these new property settings using Edit in Datasheet, you may sometimes get a question that says: "You have pending changes or unresolved conflicts and errors. Do you want to wait for this operation to complete?" Click Yes if this happens. The reason that this happens is that the Datasheet is an ActiveX component that does its synchronization in short intervals; if you are too fast when switching back to the standard view, it might have not automatically synchronized the modifications yet.

  9. The Datasheet view is also perfect when you want to change the order of columns, and to hide, edit, or delete a column. Use the description below to move the columns Doc Type and Security Class more to the left in this document library. There are even more actions available in the Datasheet view. Click Actions image from book Edit in Datasheet. Then select any of these operations:

    • q Move a column: Click on the column header, and you will see an icon with four arrows; keep the left mouse button down and drag the column to a new position, then release it.

    • q Edit a column: Right-click on the column header to be modified, then select Edit/Delete Column; the configuration page for this column is now displayed, and you can change the settings for this column.

    • q Delete a column: Right-click on the column header, then select Edit/Delete Column; at the end of the configuration page for this column, click Delete.

    • q Add a column: Right-click on any part of the table, and select Add Column, then enter the settings for this new column.

    • q Open a document: Right-click on any cell for this document row, and select Document image from book Open Document. The document will open in read-only mode.

    • q Edit a document: Right-click on any cell for this document row, and select Document image from book Edit Document.

    • q Check out document: Right-click on any cell for this document row, and select Document image from book Check Out Document (or Check In Document if the document was previously checked out).

    • q Discuss the document: Right-click on any cell for this document row, and select Discuss. The document is opened in a web browser, and the Discussion pane is presented where you can add your comments about the document. Note that this does not change the actual content of the document; all discussions are stored in a separate location in the SQL database, but are linked to this document.

      Important 

      Note that web discussions will only be available for documents that are opened in a web browser, not in full clients such as MS Word.

    • q Create an alert: Right-click on any cell for this document row, and select Alert Me.

    • q Copy or move cell content: mark the cell, right-click, and select Copy or Move, then mark the destination cell, right-click and select Paste.

Important 

To learn more about all the functionality the Datasheet offers, rightclick on any cell and select Help.

image from book

The method in step 7 above is fine if you just want to change the properties for a single document; the second method in step 8 is very handy when you want to modify several documents' properties at the same time. Use whatever method you find convenient.

This is fun, don't you agree? It is so easy to add a new column if there is a need to keep track of a new property. Now try some more: Say that you want to list the person who is responsible for each document. You also want to display the company name that each file is connected with. Now, (and this is very nice), if you already have a contact list that contains all the company names, you can use that list in this document library.

To make this exercise more fun, before you continue, add some company names to the Contact list for this site: In the Quick Launch bar, click Contacts to view this list. To add a contact, click the New button. On the following web form, enter at least the Last Name and the Company name, then click OK. Now add some more contacts with other company names. When you're ready, continue with these steps:

  1. Click the Shared Documents link to open a new page with the library.

  2. Let's start by adding a column with the person responsible for a given document: Click Settings image from book Create Column. On the web form enter these settings (accept the other default settings):

    1. Column Name: Responsible.

    2. The type of information in this column is: Person or Group. Instead of adding a choice list of possible document managers that you need to update regularly, you can do a lookup on the Active Directory.

    3. Description: "Enter the user responsible for this document."

    4. Allow selection of: People Only.

    5. Choose from: All Users.

    6. Show field: Name (with picture).

    7. Click OK to save and close this page. Your column is done.

  3. The next and final column will retrieve its content from the Contact list. What you need is just the company name for each customer. Click Settings image from book Create Column. On the web form enter these settings (as shown in Figure 10-6):

    image from book
    Figure 10-6

    1. Column Name: Company.

    2. The type of information in this column is: Lookup.

    3. Description: "This column gets its value from the Contact list."

    4. Get information from: Contacts (the name for this list).

    5. In this column: Company.

    6. Click OK to save and close this page. Your new column is done.

  4. You have the two new columns now. Let's see how they work: Switch to the Datasheet view (Actions image from book Edit in Datasheet View), the edit the following columns for the document in the library:

    1. In the Responsible column, use its dropdown menu (note that it lists all users in this Active Directory environment), and select any name.

    2. Then use the Company dropdown menu, and note that it will contain the names in the Contacts folder; select any company name in this list.

    3. Repeat steps a and b until at least five documents have a value for these columns, to prepare for the next exercise. Then go back to the standard view: Actions image from book Show in Standard View. Note that in standard view, a picture of the Responsible user will be displayed, since you selected the option to show the field Name (with picture) in step 2f above.

As you have seen, adding new columns is very easy and makes it much easier to understand what a specific file is used for. To sort the list of documents, click on the column names. For example, if you want to sort the files based on document types, click the Doc Type name; click one more time if you want to reverse the sort order. Even though the column feature is very nice, it will be hard to find what you are looking for when the list contains hundreds or even thousands of files. What you need is a way of grouping and filtering the filenames.

Working with Views

A document library with custom columns is so much easier to use than a standard file system. But you can also use these columns to do something more; they can be the base for sorting, grouping, and filtering the files presented in the document library. SharePoint calls this a view. You can create a view that only displays documents where the Security Class is equal to Secret or a view that groups all documents and files based on company, or a view that only displays the files of which you are the Responsible person.

A document library can have any number of views. Each view can be either public or personal. Note that views are not security definitions; if someone knows the URL address for another user's personal view, he can use it by typing in the URL address manually.

The real beauty with columns will show up when you start creating views. Note that end users are supposed to create their own views, after some training, without any assistance from the administrator or a web developer. Views are an important feature and a key to achieving effective document management.

Now it's time for some exercises again. Use the steps to create the views mentioned above. Remember that they are dependent on the columns made in the previous examples, so if you have created other columns, you will have to replace the names below with your column names.

Try It Out Create Views in Document Libraries

image from book
  1. Log on as an administrator or a member of the SharePoint group "Designer," and open the same web site as in previous exercises.

  2. Open the document library where the new views will be created (in this example, Shared Documents).

  3. At the far end of the toolbar, you will see a menu named View showing the current view, most likely named All Documents. Open this menu, and select Create View.

  4. You will select one out of five available types of views: Standard View, Datasheet View, Calendar View, Gantt View or the Access View. In this example, select Standard View.

  5. Now you see a web form asking about how this view is to be configured. The first example is to create a view that only displays a document where the Company column is equal to Microsoft:

    1. Name: Microsoft Documents. This is just a label for this view.

    2. Make this the default view: No (the default value).

    3. View Audience: Create a Public view (the default value). A personal view will only be visible for the user who created it.

    4. Columns: Check each column to be displayed in this view. You can also change the order by using the Position from Left option.

    5. Sort: Name (for use in forms). This setting will present all documents in the list sorted by the filename.

    6. Filter: In the "Show the items when column" section, set Company equal to Microsoft. Note that this will automatically set the filter option "Show items only when the following is true." Now you have created a filtered list. Click OK at the end of this page to close and store this page.

  6. The content for this document library is now displayed, but only documents that match the filter criteria, that is, where the Company name equals Microsoft.

  7. Look at the view menu on the toolbar. You will see the name for this new view listed. Open its menu and select All Documents, and you will see all the documents again.

  8. The next example shows how to create another view that will group all files based on Company name, you use the view menu again, and select Create View, then select the Standard View, and Enter these values:

    1. Name: Companies.

    2. View Audience: "Create a Public view."

    3. Columns: Define the columns you want to display and in what order.

    4. Sort: Name (for use in forms).

    5. Expand the section Group by and then set First group by column: Company. Note that the setting "By default, show groupings" is set to Collapsed. This will show only the group names by default, not the individual documents for each group.

    6. Click OK.

  9. The document library is displayed again, but this time only showing groups of companies (see Figure 10-7). Note that the numbers in parentheses indicate how many files match the company name. If there are documents without any value in the Company column, then they are all grouped under the headline Company. For example, in the Figure 10-7 there are six documents without a Company setting.

    image from book
    Figure 10-7

  10. To create a third view that only lists documents where you are the Responsible person is almost as easy; the only difference is that you must in some way tell the view who you are. SharePoint has a special variable for this: [Me]. Note that these variables are translated into your local language if you install anything other than U.S. English. Create a new view as described above, based on the Standard View, then enter these values:

    1. Name: My Documents.

    2. View Audience: Create a Public view.

    3. Columns: Define what columns to display and in what order.

    4. Sort: Name (for use in forms).

    5. Filter: Set "Show the items when column" Responsible is equal to [Me]. (Note that you have to enter [Me] manually).

    6. Expand the Totals section: Set the column Name to Count. This will calculate and display the number of files over the Name column.

    7. Click OK; only documents where your name is listed as Responsible will be listed in the library.

image from book

It should be clear to you now that views are easy to create, yet very powerful. The variations are almost endless. You can also combine multiple columns (for example, if you need a view that lists all public files that you are responsible for). It is also possible to display more advanced calculations. For example, say that you have one column that displays the date when a contract ends. You want a view that lists all documents with fewer than 30 days to the end of the contract. This is not possible to define with just a view, but you can use a little trick: Create an extra column that contains the date 30 days before the end of the contract and then use both of these columns when creating the filter criteria for this view.

Try It Out List Documents with Less Than 30 Days to a Date

image from book
  1. Open the Document Library; click Settings image from book Create Column, then enter:

    1. Name: End Date.

    2. Type: Date and Time.

    3. Click OK.

  2. Enter the end dates for each file in this new column. Make sure that some have dates more than 30 days away and some have dates less than 30 days away, to make the search results more interesting.

  3. Click Settings image from book Create Column, and enter these settings:

    1. Name: 30 Days.

    2. Type: Calculated. Use the formula "=[End Date]-30" and set the returning data type to Date and Time.

    3. Click OK.

  4. Now you have the two values you need for this view. The next step is to create the view that compares today's date with these limits. SharePoint has the special keyword [Today] that you will use in this example; it allows you to compare dates with the current date. If the current date is within the limits defined in step 2 and 4 above, this document should be listed; if not, do not list it. Create a new Standard View with these settings:

    1. Name: Check these documents.

    2. View Audience: Create a Public view.

    3. Columns: Define what columns to display and in what order.

    4. Sort: Name (for use in forms).

    5. Filter: "30 Days" is less than or equal to [Today] and "End Date" is greater than [Today].

    6. Click OK.

image from book

Working with Alerts

One of the really cool features in SharePoint is alerts. An alert is your own private servant that checks all documents and other information types. If something you are interested in changes, you will get an e-mail from SharePoint. This is known as an alert, and it works with both MOSS and WSS. Here are the most common types of alerts:

  • q A single file: Sends you an e-mail if a specific file is changed.

  • q A complete folder: Checks a folder; if it is modified or if a file is added, modified, or removed, you are notified.

  • q A list item: Checks a specific list item in any type of list; if the item is modified, you are notified.

  • q A complete list: Checks a specific list; if the list is updated, for example if a list item is added or modified, you get an e-mail.

  • q A news item: Lets SharePoint's alerts govern the News list on an intranet; when something happens to this list, you get an e-mail.

  • q Search query: Gives you the option when creating a search query (under the Action section) to define a persistent SQL query, meaning that your search query can be saved and used again later.

Important 

SharePoint 2007 also allows you to send updates as RSS Feeds, as a complement to or replacement for alerts; see Chapter 7 for more information about RSS.

A common question when discussing SharePoint alerts is how to add an alert for somebody else or for a group. This was not possible in SharePoint 2003, unless you added special Web Parts. But in SharePoint 2007 this feature is built in.

In the following example you add an alert for a single file and for a complete document library.

Try It Out Add Alerts to Files and Document Libraries

image from book
  1. Log on as a member of the SharePoint group Designer or as a Site owner.

  2. Open the site and click on the document library to view its content.

  3. To add an alert:

    • q For a separate file: Use the quick menu for any file; select Alert Me.

    • q For a document library: Click Actions image from book Alert Me.

  4. The default e-mail address will be your own. If you want to create an alert for other users or groups, simply enter their names in the Users field. You can also click on the little user directory icon and search for users and groups.

  5. In the Change Type section, select what type of change you want to trigger an alert. The default is All changes.

  6. In the Send Alerts for These Changes section, select the type of filter to be used for the alert; the default is Anything changes. Here you can also set the rule that the alert must only trigger when a document is displayed in a specific view.

  7. Define how often you want SharePoint to check for modifications. The recommended frequency is Send a daily summary. This will group all alerts into one e-mail message per day. If you select the option to send an e-mail immediately, the e-mail will show up within five minutes after the change. You can also select an option to get one alert message once every week.

  8. Click OK to save and close the web form.

  9. A summary of the alerts are listed in two places. Note that they do not show the same information:

    1. All alerts for a specific team site: Click Site Actions image from book Site Settings image from book User Alerts. This page can also be used by the site owner to delete alerts for a specific user.

    2. All alerts for a user, in both the portal site and any team site: In Outlook 2003 and 2007 the user will see these views by opening the menu Tools image from book Rules and the Alerts image from book Manage Alerts tab. Note that this is the only way for a user to display a total summary of all alerts!

image from book

The alert feature is available almost everywhere in SharePoint, both in MOSS sites and in every WSS site. Learn how to use them. They can save you a lot of time and ensure that you know about important changes.

Checking Out and Checking In

So far you have learned how to work with custom columns and views, as well as alerts. Now you will look more closely at how the actual document is updated. When you open a MS Office document stored in a file share, it automatically opens in edit mode, even if your intention is only to read it. If someone else tries to open the same document while you have it open in edit mode, it will not work, since you have locked it. The other user can use a copy of that document or wait for you to close the document (also closing edit mode). It would have been better if documents were automatically opened in read-only mode instead of edit mode. SharePoint does this, and you actually must use the document's quick menu to select Edit in Microsoft Office Word or whatever file type you are opening.

Assume that the user Anna needs to update a specific document that is stored on a public file share; she knows that it will take more time than she has available today, so what do she do? One solution is to copy the file to her local computer and update this file locally. The problem with this very common solution is that someone else, let's say Thomas, may start modifying the original file, unaware that Anna is updating a copy of this file. When Anna is done with her editing, she copies the file back to the original storage. What will happen if the original file has been updated by Thomas during this time, without Anna knowing this? Well, Anna's file will overwrite Thomas's version, without any warning.

A much better approach is to lock the file so that only one person can edit the document. This is a standard feature of all SharePoint's sites, including the free WSS team sites. It is called checking out when a user locks the editing process on a file; from that point on only that user is able to update that document.

When that user is done, he or she performs a check in, which saves the current version and removes the editing lock. The file is now available for others to edit.

So what happens when a user checks out a file? It actually splits in two separate versions: one that the content author sees and works with and another that other users see, which is the same as the most recent public version. When the author later checks in the file, that version replaces the previous public version and becomes the new public version. What happens with the previous version depends on the setting for version history. If version history is activated, the file is saved but hidden; if version history is not activated, the file is overwritten.

When a user checks out a file, her name will be listed in the default column Checked Out To that all document libraries have. If another user tries to open that file in edit mode, she will be warned that this file has been checked out by the first user, but SharePoint will offer the user the option to open the file in read-only mode. There is no way that a checked-out file can be edited by more than a single user.

When a user opens any MS Office files, such as Word and Excel files in the normal way, without any previous checkout process, this also works as if the file were checked out. In other words, SharePoint does a silent and implicit checkout when opening any Office document; when the document is later saved and closed, a silent checkin occurs. No listing is created in the Checked Out To column, but the process works the same way as before, except that it only works as long as the user has the document open in her MS Office application. This feature will work with MS Office 2000 or later.

Try It Out Check Out and Check In Documents

image from book
  1. Go to any document library where you have at least Contributor permissions, such as the SharePoint group Members (i.e., where you can add, delete, and modify files).

  2. In this example, choose an existing MS Excel file. Use its quick menu and select Check out. Note that your name now is listed in the Checked Out To column (as in Figure 10-8), regardless of whether you have the file opened in MS Office or not.

    image from book
    Figure 10-8

  3. Log on as another user. Try to open the same document, using its quick menu and Edit in Microsoft Office Excel. You will get a warning that this document is checked out by another user (see Figure 10-9). Close that warning and the MS Office program again.

    image from book
    Figure 10-9

  4. Go back to your first account. Try to edit the same document, and it will work just fine. Do some modifications and then close down MS Excel. What happens next, depends if the library has version history activated or not.

    1. No Version History: This is the default setting for all libraries. First, you will be asked if you want to save the modification or not; click Yes. Next, you will be informed that other users cannot see your modification unless you select the option to check in the document (see Figure 10-10); click Yes. Finally, you will get a chance to enter a comment about this version. This information will then be listed in the version history. You can also choose to keep the document checked out after saving it.

      image from book
      Figure 10-10

    2. Version History Activated: First, you will be asked if you want to save the modification or not; click Yes. Next, you will be asked if you want to check in a minor (draft) version, or a major (published) version; you can also enter a comment about this version (see Figure 10-11). Select the option to check-in a major version.

    image from book
    Figure 10-11

  5. The column Checked Out To is now empty, since the file is no longer checked out. If instead of checking in the file, you chose to keep the file checked out, the file would be closed and your name would still be listed in the Checked Out To column. That is perfectly fine if you want to go home for the night and continue to edit the file the next day.

image from book

A commonly asked question is whether the administrator can break or undo a checkout lock made by somebody else. The answer is Yes! The administrator simply goes to the same document library, uses the Quick Launch bar, and selects either Check in to keep whatever the author has saved so far or Discard Check Out to revert the document to its last public version. If the administrator chooses to check in the document, SharePoint will display the following warning depicted in Figure 10-12.

image from book
Figure 10-12

Document Version History

By default SharePoint will not store previous versions of any document. It is possible to activate the version history feature for most types of lists and document libraries, XML libraries, and picture libraries. This is a big improvement over the previous SharePoint 2003 version, where only libraries had version history.

The reason that version history is disabled by default is that it requires disk and CPU resources. However, the load is much less with SharePoint 2007 than with SharePoint 2003. Now SharePoint only stores the delta, that is, the information updated, not complete documents as in previous SharePoint version. If you have version history active and later revert back to no version management, it will in effect delete all prior versions of all documents except the latest version.

There are two types of version history in SharePoint 2007: one that only stores public, also known as major, versions (i.e., 1, 2 and 3), and another type that keeps track of both draft (1.1, 1.2) and major versions (1.0, 2.0). Choose the one that suits your needs best; you will probably need a mix of all three types for all your document libraries.

Try It Out Enable Version History

image from book
  1. Log on as an owner of a site.

  2. Click on the document library, for example Shared Documents, to view its content.

  3. Click Settings image from book Document Library Settings. If you do not see this option, then your account does not have permission to change the settings for this library!

  4. Click on the link Version settings. In the section Document Version History, you can choose the type of version history for this library: No versioning, Create major versions, or Create major and minor (draft) versions. Note that here you can also set the number of versions to store. Another related setting is in the Draft Item Security: If you selected Create major and minor (draft) versions above, you can define who will see the draft versions:

    • q Any users who can read items: Choose this option if all users should be able to read draft versions.

    • q Only users who can edit items: Choose this option to limit the group of users who will see draft versions to authors only, (i.e., not users with only Read access).

    • q Only users who can approve items (and the author of the item): Choose this option when nobody except the author and the user with Approve permission should be able to see the draft version. Note that this option is only available if you activate the Require content approval for submitted items option is set to Yes, at the top of this web form!

  5. Click OK and then the breadcrumb trail Shared Documents at the top of this page.

Regardless of the type of version history you selected, it is now active, but only for the current library! If you have more document libraries and want a version history of them all, you must enable this for all of these libraries. Test it now:

  1. Edit any MS Office document in the list and then save and close this file.

  2. Use the file's quick menu and select Version History. Depending on the type of version history you selected, you will now see the following:

    • q Only Major Versions: The list shows that the current version is 2.0.

    • q Major and Draft Versions: The list shows that the is version 1.1, that is, this is a draft version, not a major (published) version. To make this the published version, go back to the previous page, and open the quick menu for the file again. This time, select Publish a Major Version, enter a version comment, then click OK. Next, open the version history again, and the current version is now 2.0.

  3. If you changed an existing file once, you should now see a list of two files, but with different version numbers, times and dates, plus the name of the user who modified the file. You can also see information about what was changed in a specific version. These versions also have a quick menu. You can use it to view, restore, or delete any of the previous versions (see Figure 10-13). If you choose to restore a previous version, the current version will simply be the second newest version, so if you want to undo this restore, you can restore the second newest version. In other words, using the preceding example, you now have three versions, where 1.0 and 3.0 are identical.

image from book
Figure 10-13

image from book

Content Types and Document Templates

One of the most requested features in the previous version of SharePoint was to be able to add more than one document template for any given document library. By default, a document library would only offer one type of document template; for example, an empty MS Word document.

Microsoft's solution was to create functionality beyond simple document templates. Why? Because many users will eventually need it, even though this need might not seem obvious at first glance. For example, say that you want to have two document templates in a document library, one Sales Quote and one Contract. The content of these templates looks different, of course. Each template most likely needs different properties, or metadata. For example, the Sales Quote needs to keep track of the due date for this quote, while the Contract stores the period that it is valid (the start and end dates). The Sales Quote also has an attached workflow, so every time a new quote is created, the sales manager will get an e-mail, while the Contract has a workflow that will inform the user responsible for this contract when there is one month left in the period. There may even be more differences between these types of documents, and if you have more than two templates, the differences will be even greater. This is why Microsoft did not just call their solution a "document template," but instead a "content type."

Content Types Overview

The solution Microsoft created for SharePoint 2007 works for both WSS and MOSS and allows an administrator to create any number of content types, each with different settings, such as:

  • q Document Template: The precreated content of the document; for example, with document headers, footers, contact information, and so on.

  • q Columns: You can define any number of specific columns for storing metadata about the type of documents. Whenever an author creates a document based on a content type, these columns will be visible.

  • q Workflows: A content type can have one or more workflows associated with it. You can also create a workflow that starts automatically every time an author creates or modifies a new document, based on the content type.

  • q Property Pane: You can customize the property page displayed in MS Office 2007 when working with documents based on a content type. You can also define if the property pane should be visible or not in MS Office 2007.

  • q Policies: You can define a number of document policies that will affect a document based on a specific content type. These policies will follow the document through its lifetime.

In other words, content types make it very easy to use documents in a process-oriented manner, not just as individual files. This is also the reason SharePoint 2007 can be used to comply with many governmental regulations, like the Sarbanes-Oxley Act (SOX) or the Health Insurance Portability and Accountability Act (HIPAA), which define how an organization should manage any type of information.

A content type can inherit its setting from a parent content type. For example, say that you have three types of sales quotes; each of them has a specific document template, but all of them have the same columns and workflows. If so, you could create a content type for the master sales quote, and the three other content types that inherit the settings from the master quote, except the document template. If you later decide to change the workflow on the master quote, the change will be inherited by all three sales quotes automatically. Working in this way, you will have a much better control over these quotes, and it will be easy to change and update them later on.

All content types you create must inherit from one of the base content types, for example a Document content type. These base content types come with SharePoint, and you can see all of them if you follow the steps in the Try It Out below.

Try It Out List the Default Content Types

image from book
  1. Log on as an administrator, and open the top site for the site collection; for example, http://srv1.

  2. Click Site Actions image from book Site Settings image from book Modify All Site Settings.

  3. In the Galleries section, click Site Content Types. The complete list of content types for the site collection is displayed (see Figure 10-14).

image from book
Figure 10-14

image from book

Each site content type is grouped into sections, such as Business Intelligence, Document Content Types, and so on, to make it easier for you to find the right one. When you create new content sources, you can store them in existing groups or create new groups. For each content type this list will display its parent content type, and the Source column shows what SharePoint site the content source belongs to. Note that a content source can have one site as the source, while still be used in subsites of that site.

Creating Content Types

You can create a new content type, whenever you need it, but very often you have a document template already that you want to use for the new content type. For example, you may have a Sales Quote in a MS Word template that you have been using for a while, and now you want to use it in a site content type. The following Try It Out shows how to do this.

Try It Out Create a Content Type

image from book
  1. Log on as an administrator.

  2. Locate the current MS Word file used as a template for Sales Quotes, and make sure that it is formatted properly. In this example, assume that this file is named Quote-Template.doc and is stored on the file server at \\FS1\Templates.

  3. Open the top site for the site collection; for example, http://srv1.

  4. Click Site Actions image from book Site Settings image from book Modify All Site Settings.

  5. In the Galleries section, click Site Content Types.

  6. Click Create on the toolbar for this page, then enter the following (see Figure 10-15):

    image from book
    Figure 10-15

    1. Name: Sales Quotes. This will be visible to the authors later on.

    2. Description: "Use this template to create Sales Quotes." This will be visible to the authors later on.

    3. Select parent content type from: Document Content Type.

    4. Parent Content Type: Document.

    5. Put this site content type into: New Group: Filobit. This will save this content type in its own group on the site content type listing, which makes it easier for the administrator to locate it later.

    6. Click OK.

  7. The content type is now created, but it has no specific settings, besides the settings it inherited from its parent, the "Document" type, which is just one column named Title. This column, along with all of the configuration available for this content type is now displayed on a web form. The next step is to start configuring this content type; click Advanced settings, and do this:

    1. Select the option Upload a new document template, then click Browse.

    2. Locate the document template file you want to use for this content type; in this example it was \\FS1\Template\Quote-Template.doc. Then click Open.

    3. The other options on this page are okay, so do not change them. Click OK to save this setting and copy the listed file into SharePoint (you can then change or move the original template file without anything happening to the content source).

  8. You are taken back to the general configuration page for the content type. Next, you can modify any of these settings for the content type (but in this example, you will not change any of these):

    • Click Workflow settings to change or update any workflows.

    • Click Delete this site content type, if you want to remove it. Make sure not to click this link unless you really want to remove the content type.

    • Click Document Information Panel settings, if you want to add or update the property pane displayed in MS Office 2007 applications, such as MS Word 2007. This pane will display the columns associated with the document. On that page is also an option to always display the property pane in MS Office 2007.

    • Click Information management policy settings, if you need to define policies for the document based on this content type.

    • Click Manage document conversion for this content type, if you want to define how a document based on the content type can be converted to other file types, such as converting an MS InfoPath form to a PNG image, or a Word document to a PDF file. Note that this requires that you have installed the support for creating PDF files, as well as activated the conversion feature for this web application (see Chapter 5).

  9. Let's add a new column for Sales Quotes that stores the last date for the quote:

    1. Still on the configuration page for this content type, click Add from new site column, then enter the following values.

    2. Column name: Last Date.

    3. The type of information in this column is: Date and Time.

    4. Put this site column into: New group: Filobit.

    5. Date and Time Format: Date Only.

    6. Default value: Today's Date.

    7. Update all content types inheriting from this type? Yes.

    8. Click OK to create this column and return to the previous web form. The new column is now visible in the Columns section.

image from book

The content type is now configured and ready to be used. Since it is created in the top site for this site collection, it can be used in any of its sites. Let's test it and add it to the document library in the IT site created before.

Try It Out Apply a Content Type to a Document Library

image from book
  1. Log on as an administrator, then open the site, containing the document library where this content type should be added; for example, http://srv1/sitedirectory/it.

  2. Click on the Shared Document to open it.

  3. Click Settings image from book Document Library Settings.

  4. Click Advanced settings, then set the option Allow management of content types to Yes, then click OK. You will be returned to the configuration page for the document library.

  5. Note that you now see a new section on this configuration page: Content Types. Click Add from existing site content types.

  6. Open the menu for "Select site content types from" to Filobit; the content type Sales Quote you created before will now be listed.

  7. Click Add to move the Sales Content to the Content types to add pane, then click OK. Again, you are returned to the configuration page for this document library. Note that the Sales Quote is now listed as a new content type, along with the default Document content type.

  8. Click Shared Documents on the breadcrumb trail to leave this configuration page and display the content of the document library.

  9. Click on the black arrow next to the New button to display its menu; it will now display Sales Quotes as an option (see Figure 10-16). Select Sales Quotes, and MS Word will open with the document template associated with this content type. Enter some values in the document, and save it. The default location will be the current document library.

image from book
Figure 10-16

image from book

What if you need to change the settings for this site content type; for example, to modify its document template or add more columns? This is really where content types shine. Just open the content type where it was created (usually at the top site), as previously described, then change any setting, including uploading a new document template. Make sure to set the option Update all content types inheriting from this type to Yes, and all document libraries associated with that content type will be updated.

Important 

Note that existing documents in the library will not be affected by the modified document template. But other settings, such as new columns or policies, will affect existing documents as well.

Document Management with MS Office

So far you have worked exclusively with a web browser, typically MS Internet Explorer. A user of MS Office 2007 will also find a lot of SharePoint-related features integrated into products like MS Word, MS Excel, and MS PowerPoint. The integration will make it possible for a user who works a lot with MS Office products to view and set SharePoint information without having to switch to a web browser. Using any edition of Office 2007, you can do the following SharePoint-related tasks:

  • q Check Out/Check In: Lock and unlock editing for a file.

  • q View version history: Display a list of all previous versions, including all comments. You can also view, restore, and delete previous versions.

  • q View Workflow Tasks: View or start workflows defined for the document library where the document is stored. This requires MS Office Professional Plus or higher editions.

  • q Manage Alerts: Set an alert for the current document.

  • q Manage other files in the library: Set alerts and delete and open other files. You can also add new documents and create folders in the current library.

  • q Manage Document Workspace: Create or delete a workspace for the current document; see more about workspaces later in this chapter.

  • q View membership: See what members have access to a team site, and if they are online, add new members, edit their Site Group membership, and remove members.

  • q Manage Tasks: View, modify, delete, and add new tasks, and create alerts for a task. This information will be stored in a task list on the site where the document library is stored. For more information about working with Tasks lists, see Chapter 7.

  • q Manage Links: View, modify, delete, and add new URL links; and create alerts for a link. This information will be stored in a link list on the site where the document library is stored.

  • q Manage Document Properties: All properties (including column settings) for the document are available here and may be changed and used in the Office document (for example, in a document header or footer). If you change a column value in Office, this will be replicated back to the document library when you store the changes.

  • q Manage the team site: From within Office, you can open this site, change its title, and open its site settings.

A subset of these features will be available for users of MS Office 2003, but none of these features is available for earlier versions! It is therefore important that at least the users who produce documents have MS Office 2007 in order to have an optimal working environment.

To see how all these features work, some examples follow. Use the steps in the following Try It Out to get familiar with this MS Office integration.

Try It Out MS Office 2007 Integration

image from book
  1. Log on as a user with at least contributor rights, (for example a user with membership of the SharePoint group Members) to a team site. Open any of its document libraries. Use the quick menu for a MS Office document (for example, an MS Word file), and select Edit in Microsoft Office Word.

  2. Depending on what SharePoint feature you want to use, you will use different buttons in MS Office. For example to use MS Word 2007 and display the document management panel for the current document, start a workflow, check out the document, or view the version history, click the Office Button image from book Server (see Figure 10-17).

    image from book
    Figure 10-17

  3. To work with the other files in this document library or create tasks in the SharePoint task list, manage members of this site, manage links, or create Document Workspaces, click the Office button, then select Server image from book Document Management Information (see Figure 10-18).

    image from book
    Figure 10-18

  4. Click on the leftmost icon on the Document Management Information pane. It will display important status information about this document, such as if someone has checked out the document. The number under the icon indicates the number of current status information messages.

  5. Click on the user icon (second from the left). The number under the icon indicates how many users and groups have access to this library. You will also see the names of these users and groups and their current online status, if you are using a local MS Live Communication Server in your network or the public MSN instant messaging service. Point the mouse to any of these users; a quick menu is available that allows you to manage that user, assuming that you have administrative rights on that team site to do so. You will see more information about those users, such as calendar status, phone numbers, mail addresses, and other Outlook properties. At the bottom of this pane tab is a button to add new members and to send e-mail to all members. This last feature is very handy when you want to inform all users about an important update and you do not know if everyone has created an alert for this document.

  6. Click on the task icon (third from the left). The number indicates the total number of tasks in this list. Note that some of these may have been added directly to the task list on the team site. Using the links at the bottom of this tab, you can add new tasks and request alerts about tasks. If there are any existing tasks, they will be listed. Point to a task to see all its details; use its quick menu to edit, delete, or create an alert for that particular task. If a task is completed, check the check box in front of the task and this information will directly be updated on the team site. Use tasks when working with documents as a reminder or to delegate things to do to other members. This is much better than sending an e-mail to team members when delegating tasks.

  7. Click on the document icon (second from the right); the number indicates the total number of documents in this library. Below this the documents are listed, unless the number is too great; if so, you will see a link to open the list in a browser instead. The reason for this is to avoid downloading a lot of information to the MS Office program. There is a dropdown menu for sorting this document list, based, for example, on creation date or filename. Every document listed has a quick menu that can be used to open or delete it, or to create an alert for that specific document. At the bottom of this tab are links for adding new documents, adding folders to the library, and creating an alert for the current document.

  8. Click on the link icon (rightmost). The number indicates the current number of URL links available in the linked list in the team site. The actual URL links are listed below it; use the Sort by menu to change the sort order for the list. For each URL, there is a quick menu that can be used to edit or delete that link, and to create an alert for that particular link. At the bottom, you will find buttons for creating new links and managing alerts for the links.

  9. At the top of the Document Management Information panel is a link to the site the document is stored in; click it to open the site.

image from book

One very handy feature is the propagation of document properties from columns in SharePoint's document library to MS Office document properties. This makes it possible to view and display those properties inside the content of a document. For example, say that you have a column in the document library that defines the customer name for a document. You can use that information to display the customer name in the document header, or anywhere in the document, by following the steps in the Try It Out below.

Try It Out Display Properties inside Office Documents

image from book
  1. Open an MS Office document in edit mode from any document library, which has a custom column, such as the Doc Type column you created in a previous example.

  2. Set the cursor in the document, where you want this information to be displayed; for example in a document header. A tip is to type a label in front of this column value to describe the property to be displayed.

  3. Select the ribbon Insert, and then click Text image from book Quick Parts image from book Document Properties. Here are list all the SharePoint columns that have been propagated into document properties; locate a property to add, and select it. The property is now displayed in the document. Note that Word documents, by default, have a number of properties, such as Author and Customer. If you have created a column with the same name, you will find two properties with the same name. For example, if you created the column Customer, you will find both the first Customer (which is the standard property found in all Word documents) and a second Customer property, which is your column.

    Important 

    If the Quick Part's "Document Properties" is grayed out, save this document and try again.

  4. There are two ways to change the value of a column property from within MS Office applications: Either you change the value in the document information panel, or you change the Quick Part added to the document itself. Either way, this will update the column value in the document library.

image from book

This last feature for displaying column settings inside an MS Office document is very handy when using document headers or other structured documents. Instead of adding values such as document type, customer name, or project number manually in the document, you can create columns for the document library and then expose them in the document, which will make it much easier for the user to both view and set the values.

More about Datasheet Views

Earlier in this chapter you saw how any list or library could be displayed using a Datasheet view, based on MS Access 2007. This Datasheet view actually has more features besides those previously explained. For example, you can print a list using MS Exchange or create a report using MS Access. This is particularly important, since the print capabilities in any web application, including SharePoint, are not too impressive.

There is a cleverly hidden button at the far-right side of the Datasheet view. It looks like a part of the right frame. Click on it, and a task pane will be displayed (see Figure 10-19). Another way of displaying this pane is to click the menu Actions image from book Tasks. Note that Datasheet view must be displayed to find the Tasks option on the Actions menu.

image from book
Figure 10-19

Using this task pane, a user can activate these features:

  • q Track this List in Access: You can link this list to an Access database and use it to create reports or work with its data with all the features of MS Access. If the content in the list is modified, then the Access database will automatically be updated. If you modify a value in the Access database, then the content of the list in SharePoint is updated. This is also a way to take the list offline, since all of the actual content of the list is copied to the Access database, not only the columns displayed in the current view. You can use one Access database for several lists, or you can create a separate database for each list, whatever suits your needs.

  • q Export to Access: This is simply a way to copy all the content of the current list to an Access database table. It will not have the two-way synchronization feature that the previous option had. Use this option when you simply want to take a snapshot of the current values in this list, possibly for calculating or reporting purposes.

  • q Report with Access: The content of this SharePoint list is copied to Access, and a default report is created. You can then modify this report; for example, removing columns, changing the order of columns, changing the logotype, and using Access AutoFormat feature to create a better-looking report (see Figure 10-20).

    image from book
    Figure 10-20

  • q Query list with Excel: Use this option to copy the list content to an Excel spreadsheet. By default, Excel will warn you about opening this data connection. To continue, you must select Enable. The result is a formatted table in Excel. You can now use this content with all the features of Excel, such as calculating, sorting, building a diagram, and printing. Note that this option will not replicate any local modifications in the spreadsheet back to the SharePoint list, as in SharePoint 2003. To modify list content outside SharePoint, you should use the option Track this List in Access instead.

  • q Print with Excel: Since SharePoint is a web application is has poor printing functionality. Use MS Excel if you want better control of the print process for the list content, such as the formatting, fonts, and colors. By default, Excel will warn you about opening this data connection; you must click Enable to continue.

  • q Chart with Excel: If you have columns with numerical or date format you can use these values in MS Excel to create charts, such as histograms and pie charts. Also here Excel, by default, warns you about opening a data connection. Select Enable to continue, then select the columns to be used for the diagram and the type of diagram; you will see the resulting diagram.

  • q Create Excel Pivot Table Report: Use the column properties to create a dynamic summary of these cell values; this is typically used for pivot tables. Also here Excel warns about the data connection; click Enable to continue.

  • q At the top of this task pane, you will also find buttons for actions like sorting, cutting, copying and pasting documents or columns.



Beginning SharePoint 2007 Administration. Windows SharePoint Services 3 and Microsoft Office SharePoint Server 2007
Software Testing Fundamentals: Methods and Metrics
ISBN: 047143020X
EAN: 2147483647
Year: 2004
Pages: 119

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net