SharePoint

Syrinx SharePoint Team Blog
Need help on your project? info@syrinx.com, or toll free (888) 579-7469, press 1

News



Need help with your SharePoint project?

Syrinx works with clients throughout New England and across the United States to architect, design, develop, and deploy SharePoint implementations. Working on fully outsourced projects, as part of your team, helping to train your team, or rescuing projects in trouble, we are comfortable doing it all. Projects from a couple weeks to several months in duration, reference clients available. Contact us today - info@syrinx.com, or toll free (888) 579-7469 and press 1 to speak to someone now!

Best Practices for Working with Column Names in SharePoint

When creating a column in MOSS 2007, SharePoint stores the name you entered as a display name AND an internal name.  The internal name is created by escaping out special character like this:

Display Name: My Column Name 
Internal Name: My_%20_Column_%20_Name

Even worse, when you edit the column name and change it to something totally different, the internal name doesn't change:

Display Name: New Name
Internal Name: My_%20_Column_%20_Name

Now, at first you might think "who cares what the internal name is".  When you are working with DataViews, some third party controls, and custom Webparts - you must use the internal name.  The potential for confusion is enormous.

Best Practice

When creating new columns, name them without any specail characters or spaces.  After the column is created, rename it with the special characters or spaces.  This way the internal name is "clean":

Display Name: My Column Name 
Internal Name: MyColumnName

When renaming a column, create a new column (using the best practice above), copy the data to the new column, and then delete the old column.  This will eliminate any confusion down the road.

 -Joe

Comments

SharePoint said:

A comment I frequently hear is: SharePoint tabs don't always highlight properly. As it turns out

# May 25, 2008 8:11 AM