Solved

Question about available columns in SharePoint view creation

Posted on 2011-09-13
4
220 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 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