One of the features with Sharepoint (WSS 3.0 is what I am
speaking about) is the ability to create ‘site columns’ for use in your
site. A site column is basically a data column
that can be shared across all libraries/sub sites within your Sharepoint
site. This is a really nice feature, but
beware as potential trouble is around the turn.
How so, turns out that whatever name you give the column
upon initial saving is the one it keeps.
Sharepoint keeps an internal name and a display name (key, value pair). You always see the display value, not the
For example, you create a column called ‘Red Bell’ and you
save it, then you notice you misspelled the name and you change it to ‘Red Bull’. You save your changes and go along on your
marry way. What you did not notice is that
the actual ‘key’ did not change, just the display value. Now, if you are NEVER going to be creating
custom web parts, or using the API (via assemblies or web services) this should
not be an issue for you. However, if you
do plan to do any custom development against Sharepoint, this may be an issue.
How to find out the ‘real’ name of the column? Simple, just look
in Sharepoint and you can find it. Bad
news is, that to the best of my ability there is NO screen that will actually
show it to you.
Here is how to get the real name
- Navigate to the Site Column Gallery
- Click on the column you are looking for
- Check the URL, yup, you read that right. Check the URL
The real column name is in the URL
The CheckNumber field is one word, but in my Site Column
Gallery it is Check Number.
Hope this helps someone, I know I was pulling my hair out
trying to understand why my web service calls worked for all columns but this
Till next time
08-09-2007 2:34 PM