Skip to Content
Professional SharePoint® 2007 Development
book

Professional SharePoint® 2007 Development

by John Holliday, John Alexander, Jeff Julian, Eli Robillard, Brendon Schwartz, Matt Ranlett, J. Dan Attis, Adam Buenz, Tom Rizzo
June 2007
Intermediate to advanced
742 pages
19h 41m
English
Wrox
Content preview from Professional SharePoint® 2007 Development

4.2. Custom Field Types

Although the out-of-the-box field types supplied with WSS v3 are numerous (see Figure 4-9), they may still be lacking in the sense that they cannot possibly support all of your data entry and validation needs. Surely, there will be a business need for a type of field type that is simply not provided by the WSS v3 framework. WSS v3 allows you to create your own custom fields to support your specific requirements and needs. You can control the custom field's properties and the field's rendering, as well as the field's validation requirements.

In order to create a custom field type, you first need to create a class that represents it. This class must inherit from one of the base field type classes. You must also create a field type definition file that contains the information that WSS v3 needs to correctly instantiate and run the field type. You can optionally include information that defines how WSS v3 should render the field type. This last task is beyond the scope of this book and will not be demonstrated; however, feel free to peruse the SDK and see how easy it is to accomplish.

4.2.1. Custom Field Type Classes

The process of creating a custom field class, as mentioned above, involves inheriting from either the SPField base class or one of the classes in the table showing field type classes supporting inheritance. Although it is possible to inherit from other field type classes not in this list, doing so is not supported. This class will control how ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Microsoft® Office Outlook® 2003 Inside Out

Microsoft® Office Outlook® 2003 Inside Out

Jim Boyce
A Five-Step Guide to Improving Your Employer Brand

A Five-Step Guide to Improving Your Employer Brand

Kimberly A. Whitler, Richard Mosley

Publisher Resources

ISBN: 9780470117569Purchase book