Solved

Question about available columns in SharePoint view creation

Posted on 2011-09-13
4
219 Views
Last Modified: 2012-05-12
Using the "Shared Documents" document library installed with SharePoint 2010 Foundation as the basis for my question, where do the available columns come from in the "Columns" section of the create view process?

When I look at the document library settings for "Shared Documents", the default columns shown as "currently available" are Title, Created By, Modified By, and Checked Out To.  However, if you begin the process of creating a new view, there are a number of other columns available to display on the new view, like (if choosing to based new view on Standard view) Check In Comment, Content Type, Copy Source, etc.

Where are these columns configured/associated with the standard view, i.e. how does SharePoint know to provide these particular ones to me as choices in creating a standard view of a document library?

Thanks in advance.
0
Comment
Question by:AgeOfEmpires
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:abhitrig
ID: 36530620
Good question!

SharePoint lists are designed to show/store items of various content types. By default, all lists have the "Item" content type preselected.

Under list setting->Advanced settings, set "Allow management of content types?". You will then be able to see the Item (Document incase of a doc library) appear under the content types for the list. Click on the content type and you will see all the fields defined there. Typically, all other content types derive from this base "Item" type and have the base fields predefined (the ones that you see under the view). So its there, SP just hides the fact from you to hide the complex details! As an analogy, think of it as the System.Object type that we have in .NET, that all other classes derive from internally.

I hope i explained it well...
 
 
0
 
LVL 4

Author Comment

by:AgeOfEmpires
ID: 36530869
Thanks for the help.  I did enable the management of content types on the Shared Document library, and as you mentioned, the Document content type shows up now on the Library Settings page.  However, if I click on that content type, all that I see for Columns are "Title".  It also shows Item as the parent and "Title" is the only column for it also.

I am signed in as site admin.

Any other ideas as to why I am not seeing the other columns?
0
 
LVL 14

Accepted Solution

by:
abhitrig earned 500 total points
ID: 36530937
Well many of the other columns are of type hidden. Any particular column you are interested in? You can see all of the fields using code/powershell. Simply loop through all the fields for the SPListItem in your list.
0
 
LVL 4

Author Comment

by:AgeOfEmpires
ID: 36531318
Thanks again.  I've not yet found the PowerShell solution to show me this, but in preliminary investigations, I certainly believe this will give me what I want.  I'm just curious as to how all of this stuff fits together and I couldn't figure out why a list had a few columns, but there were several more available when creating a new view.

0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question