Sharepoint 2010 Forum

 
Home » Forum » Sharepoint 2010       Ask a questionRSS Feeds

webpart column feature

  Asked By: James Mcclure         Date: Jul 19, 2011      Category: Sharepoint 2010      Views: 617
 

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns = "http://schemas.microsoft.com/sharepoint/">
<Field ID="{e00d37af-37d9-4612-a5fc-4d15fcff5200}"
Name="Viewer"
StaticName="Viewer"
DisplayName="Viewer"
Group="Spartan Group"
Type="Computed"
ResultType="Text"
Required="FALSE">
<FieldRefs>
<FieldRef ID="{9d30f126-ba48-446b-b8f9-83745f322ebe}" Name="LinkFileNameNoMenu"/>
</FieldRefs>
<DisplayPattern>
<HTML><![CDATA[<a onfocus="OnLink(this)" href="]]></HTML><URL/>
<HTML><![CDATA[">Pre</a>]]></HTML>
</DisplayPattern>
</Field>
</Elements>


Trying to create a feature that creates a column on site level, however, no group "Spartan Group" shows up in the site columns. For testing purposes, the below does create a group. I think it has something to do with "Computed".



<Field Type="Text" DisplayName="MyReference" Required="FALSE" Decimals="0" Commas="FALSE"
Group="My Group" ID="{918BA6B8-60BC-417e-AEE5-F9E1A0A59144}"
StaticName="MyReference" Name="MyReference">
<Default>0</Default>
</Field>


Any help would be appreciated. Thanks.


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:      

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on webpart column feature Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].