Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How do i get new columns to show up in my document library?

$
0
0

I am creating a document library via a feature and have the following Schema for my list instance. I am trying to add new columns to this library but am having a bit of trouble with the columns not showing up when the document library is created. The document library gets created as I want...but when I go into the document library, the columns I am trying to create are not displayed.

<?xml version="1.0" encoding="utf-8" ?><List xmlns:ows="Microsoft SharePoint" Title="listname" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/listname" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/"><MetaData><Fields><Field Name="LinkTitle" DisplayName="Title" Type="Text"></Field><Field Name="LinkTitleNoMenu" DisplayName="Title" Type="Text"></Field><Field Name="Title" DisplayName="Title" Type="Text" Required="TRUE"></Field><Field  Name="ColumnOne" Type="Text" DisplayName="Column One"  Required="True"></Field><Field  Name="ColumnTwo" Type="Text" DisplayName="Column Two"  Required="True"></Field><Field  Name="ColumnThree" Type="Text" DisplayName="Column Three"  Required="True"></Field><Field  Name="ColumnFour" Type="Choice" DisplayName="Column Four"  Required="True"></Field></Fields><Views><View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE"><Toolbar Type="Standard" /><XslLink Default="TRUE">main.xsl</XslLink><RowLimit Paged="TRUE">30</RowLimit><ViewFields><FieldRef Name="LinkTitleNoMenu"></FieldRef><FieldRef ID="{07BCD344-0A65-4201-BB9F-302C52EA326C}" Name="Value" DisplayName="Value"/></ViewFields><Query><OrderBy><FieldRef Name="Modified" Ascending="FALSE"></FieldRef></OrderBy></Query><ParameterBindings><ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" /><ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" /><ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" /></ParameterBindings></View><View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx"><Toolbar Type="Standard" /><XslLink Default="TRUE">main.xsl</XslLink><RowLimit Paged="TRUE">30</RowLimit><ViewFields><FieldRef Name="LinkTitle"></FieldRef><FieldRef ID="{07BCD344-0A65-4201-BB9F-302C52EA326C}" Name="User" DisplayName="User"/></ViewFields><Query><OrderBy><FieldRef Name="ID"></FieldRef></OrderBy></Query><ParameterBindings><ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" /><ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" /></ParameterBindings></View></Views><Forms><Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" /><Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" /><Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" /></Forms></MetaData></List>

What am I doing wrong? How do I get the new columns to be displayed each time I go into the document library? Thanks for the help.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>