The Result Data Newsletter   
Volume 710 - October 2007   
© Copyright 2007 Result Data Consulting, Ltd.  614-505-0770  www.resultdata.com   

    Result Data Home Page  |  Newsletter Archive  |  Upcoming Events  |  Classes & Workshops  |  Request Information
Upcoming Events:  Mid Ohio BusinessObjects User Group: 11/14, Data to Dashboards: 11/14, Microsoft Data Mgt & BI Seminar:  12/14, Microsoft SQL Server User Group:  12/14

Return to Newsletter Contents...

 

Microsoft SharePoint Metadata

by: Michael Mullin, Consultant, CRCP, MCAD

The last time we gathered I promised that I would discuss content management. But while pondering that subject it occurred to me that we should first discuss some other subjects. The first of these is metadata. Metadata is usually defined as “data about data”. I must admit the term always reminds me of an English Professor at OSU who once told me that Sociologists like to use big, obscure words so that people would think they were real scientists. Did he foresee Computer Science?

It is possible for data to be both metadata and data at the same time. As an example, the title of this article “Microsoft SharePoint Metadata” is metadata since it describes the data in this article and it is data since it is part of the article itself. But wait! In this case the metadata includes the word “metadata” itself so “metadata” has become both metadata and data. I am having too much fun with this, I shall proceed.

SharePoint contains a lot of lists. A Library Web Part is list of documents, a Tasks Web Part is a list of Tasks, and Photo Web Part is a list of photos. A list is just a table. Tables have rows and columns. In SharePoint, the user can add columns to these lists. On the menu bar above the library, tasks, photo, links, or other web part will be an item called “Settings”. (Depending on permissions assigned to users this menu selection can be hidden.) One of the items on the Settings Drop Down menu is “Create Column”. This menu choice will add a column to the list. These columns can be used to store information which describes the item in the list. In other words, the columns contain metadata.

Columns are easy to create, Select the Settings/Create Column menu item and SharePoint will present you with a web page for creating the column.

Create Column

Assign a column name, choose a data type and you have a new column. If you specify that a column is required, then a user will not be able to add an item to the list which contains the column without providing a value for the column. Actually there are a lot more settings to a column than these. The available settings vary depending on the data type that you chose for the column. For a column with a Date and Time data type, you can choose between saving the “Date Only” and “Date & Time”. You can usually specify a default value for a column too. Although the new column is added to your list, it does not have to be displayed.  When creating a view of the list, the new column will appear in the list of columns available and can be turned on or off.

The column created above is part of a particular list. It is also possible to create a site column. Site columns allow you to create a column once and use it in many places. For instance, you might decide that you always want a column on every list to contain the name of the person who created the list item. This could be accomplished by creating a new column for every list on the site using the same procedure described above. However, this is tedious and prone to error. To create a site column, you must have access to the “Site Actions” menu. Clicking on the Site Actions/Site Settings menu item will display the Site Settings, which is a page with links to a lot of other pages, one being the Site Columns Gallery.

Pic 2

Pic 3

Creating a column from the Site Column Gallery page is the same as described above. The only difference is the column is not added to any lists. Site columns can be added to any list on a site or any of the site’s sub-sites (aka child sites). If we want to have a column for “Created By” used in every list, we can create as a site column for the topmost site of the site collection. When we create a new list any where in the site collection this column will be available to add to the list.

Site columns also have another very interesting characteristic. Let us assume the “Created By” column has been created and assigned to many lists throughout the site. Furthermore, when we created the column, we forgot to specify the column as required, which would force the user to populate the column with data whenever a new item was added to the list. We can go back to the site column gallery and edit the column definition. When we do this we will be presented with a choice at the bottom of the Change Site Column Page for updating the list.

Pic 4

If we choose yes, our modifications will be propagated to all existing columns which are based on our original definition. This helps maintain a uniform behavior throughout our sites.

It is easy to see that adding columns to all our lists can be very useful. Just remember that when referring to columns, do not call them columns. Call then metadata. No one will understand you, but they will think you are very smart!

Go to Top  |  Return to Newsletter Contents

The Result Data Newsletter is published approximately once a month to share the latest information on business intelligence, data management and CRM. There should be a link below to allow you to change or remove yourself from our list. We take your requests very seriously. If you have any difficulty please contact us at 614-505-0770 and we will make sure that your request is handled properly. This is not intended to be an unsolicited message and you can reach us in person if needed.

© Copyright 2007 Result Data Consulting, Ltd. - All Rights Reserved
All trademarks and copyrights are the property of their respective owners. This information is provided without warranty.
Announcements
Fall Training Special
Get a jump on your Christmas shopping!  Schedule and attend any public training class now through December and receive a FREE $50 gift card to Target, Barnes & Nobles or Best Buy (restrictions apply).  Call 614-505-0770 for further details and restrictions.
Next MOBOUG Meeting
The next Mid-Ohio Business Objects User Group (MOBOUG) meeting is November 14, 2007.  Call 614-505-0770 or click here to reserve your seat.
Data to Dashboards
Join us on November 14th to learn about the methods and tools that can transform your data into highly functional and robust dashboards, reports and analytics.  Data-to-Dashboards will provide an overview as well as live demonstrations of the complete process that collects, transforms and delivers your data using industry leading Business Intelligence software.  Enjoy a comprehensive review of the concepts and tools that deliver top quality BI content to your user community.  Call 614-505-0770 or click here to reserve your seat.
Looking for a Few Good Men and Women
Join our award winning team of Business Intelligence consultants and .Net Software developers.
Send your resume and salary requirements to:
jobs@resultdata.com
Next Microsoft Data Management & BI Seminar
The next free Microsoft BI seminar is on Dec. 14, 2007.  Call 614-505-0770 or click here to reserve your seat.
Next Microsoft SQL Server User Group
The next free Microsoft User Group is on Dec. 14, 2007.  Call 614-505-0770 or click here to reserve your seat.