We offer private, customized training for 3 or more people at your site or online.
In previous tutorials I showed you how to create a Departments list and custom lookup column that uses the Departments list as its data source for the dropdown values. In the first article, I mentioned I was going to show you how to create an InfoPath form to allow users to submit their time and then use a workflow to validate and approve the time submission. In this tutorial, I will illustrate how to create a content type that will be used to store data for the Timesheet InfoPath form.
A Content Type is a SharePoint object that contains columns that are used to describe a specific piece of content, such as a Timesheet entry. Out of the box content types include Document, Item, Event and Contact, for example. Content types can be created at various levels within a SharePoint site hierarchy including the Site Collection and Site level. The higher up the hierarchy the content type resides, the broader the scope in which it can be used. Since content types are objects, workflows can check for specific content types or create a workflow for a specific content type.
Our Timesheet content type is going to have the following columns:
I will show you how to create the Notes column. After that, to avoid repetitive steps, I will give you a table of values for the remaining columns and let you create them using the steps for the Notes field.
You will need to navigate to the same location where the departments column was created, which should be the root of your site collection. My departments list and custom column are at the root of my training site.
Here are the steps to create the Timesheet content type and the Notes column:
Column Name | Weekending Date |
Type of Column | Date and Time |
Date and Time Format | Date Only |
Date Format | Standard |
Default Value | Today's Date |
Column Name | Employee Name |
Type of Column | Person or Group |
Enforce Unique Values | No |
Allow Multiple Selections | No |
Allow Selection Of | People Only |
Choose From | All Users |
Show Field | Name (with Presence) |
Column Name | Hours Worked |
Type of Column | Number |
Number of Decimal Places | 2 |
Default Value | Number |
Here are the list of columns that you should have after you complete this step.
Let's organize the fields in the order that they will appear in our timesheet. Below is a sneak peek at the form we will build in future articles. As you can see, the columns are not in the correct order.
That it! You've created the Timesheet content type.
Here are the screenshots of the columns you created in this article for your reference:
Happy SharePoint-ing!
Author: Eric Stepek, one of Accelebrate’s SharePoint instructors
Previous: Projecting Additional Columns from the Department List
Next: Creating a Content Type for the Timesheet InfoPath Form
In-Depth SharePoint TrainingFor in-depth SharePoint training, click here to view all of Accelebrate's SharePoint training courses for you and your staff. |
Our live, instructor-led lectures are far more effective than pre-recorded classes
If your team is not 100% satisfied with your training, we do what's necessary to make it right
Whether you are at home or in the office, we make learning interactive and engaging
We accept check, ACH/EFT, major credit cards, and most purchase orders
Alabama
Birmingham
Huntsville
Montgomery
Alaska
Anchorage
Arizona
Phoenix
Tucson
Arkansas
Fayetteville
Little Rock
California
Los Angeles
Oakland
Orange County
Sacramento
San Diego
San Francisco
San Jose
Colorado
Boulder
Colorado Springs
Denver
Connecticut
Hartford
DC
Washington
Florida
Fort Lauderdale
Jacksonville
Miami
Orlando
Tampa
Georgia
Atlanta
Augusta
Savannah
Hawaii
Honolulu
Idaho
Boise
Illinois
Chicago
Indiana
Indianapolis
Iowa
Cedar Rapids
Des Moines
Kansas
Wichita
Kentucky
Lexington
Louisville
Louisiana
New Orleans
Maine
Portland
Maryland
Annapolis
Baltimore
Frederick
Hagerstown
Massachusetts
Boston
Cambridge
Springfield
Michigan
Ann Arbor
Detroit
Grand Rapids
Minnesota
Minneapolis
Saint Paul
Mississippi
Jackson
Missouri
Kansas City
St. Louis
Nebraska
Lincoln
Omaha
Nevada
Las Vegas
Reno
New Jersey
Princeton
New Mexico
Albuquerque
New York
Albany
Buffalo
New York City
White Plains
North Carolina
Charlotte
Durham
Raleigh
Ohio
Akron
Canton
Cincinnati
Cleveland
Columbus
Dayton
Oklahoma
Oklahoma City
Tulsa
Oregon
Portland
Pennsylvania
Philadelphia
Pittsburgh
Rhode Island
Providence
South Carolina
Charleston
Columbia
Greenville
Tennessee
Knoxville
Memphis
Nashville
Texas
Austin
Dallas
El Paso
Houston
San Antonio
Utah
Salt Lake City
Virginia
Alexandria
Arlington
Norfolk
Richmond
Washington
Seattle
Tacoma
West Virginia
Charleston
Wisconsin
Madison
Milwaukee
Alberta
Calgary
Edmonton
British Columbia
Vancouver
Manitoba
Winnipeg
Nova Scotia
Halifax
Ontario
Ottawa
Toronto
Quebec
Montreal
Puerto Rico
San Juan