AndyGett
Andy Gettings is the president of Bullseye Consulting which develops and manages customized SharePoint applications and other software and databases for businesses. More
Microsoft Certified Technology Specialist

Microsoft Office SharePoint Server 2007 Configuration


RSS Feed Feed your read!

Archives

July 2008 (12)
August 2008 (1)
September 2008 (1)
October 2008 (2)
January 2009 (2)
April 2009 (1)

Links

Archive
Archive (Calendar)
@AndyGett Twitter
AndyGett LinkedIn
Bullseye Consulting

Tag Cloud

Family, M4300, Recreation, SharePoint, Technology, Virtualization,

SharePoint Object Names – No Spaces 

Tags:

I have always avoided using spaces in object names, even in my file names and directory names. This stems from a programmer's background and a general dislike of seeing things like http://somedomain.com/home%20page.htm. It also makes DOS commands and batch files easier.

It's similar with SharePoint. It allows Content Types and site column names to contain spaces, but when you want to use them in CAML, XML or XLS via a Data Form Web Part, a column named "Expiration Date" turns into "Expiration_x0020_Date". However, you can initially name such a field using the "camel back" format, i.e., ExpirationDate, and then rename the field to "Expiration Date". The internal field name remains ExpirationDate, but end users see it with the space. The few extra seconds it takes to rename such fields is worth it.

 
Posted by AndyGett on 9-Aug-08
0 Comments  |  Trackback Url  |  Link to this post | Bookmark this post with:        
 

Links to this post

Comments

Name:
URL:
Email:
Comments: