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

HI want to create a simple computed columns c# sharepoint 2010

$
0
0

Hi there , I just want to create a simple computed column . I tried to create something with hello world but it doesnt seem to render on the screen. I want to create a computed column for so other reason and a simple 'hello world' can expand with further code later on.

I created a list definition in vs2010 with this code the following computed field 

<Field ID="{6ddf785c-bce5-421c-95ba-c984b73993ed}" 
             Name="ComputedLink" 
             DisplayName="Title" TextOnly="TRUE" 
             ReadOnly="TRUE" Type="Computed" 
             Sortable="FALSE" Filterable="FALSE" 
             ClassInfo="Icon" AuthoringInfo="(link to view item)" 
             SourceID="http://schemas.microsoft.com/sharepoint/v3" 
             StaticName="ComputedLink" 
             FromBaseType="TRUE">
        <FieldRefs>
          <FieldRef Name="ID"/>          
        </FieldRefs>
<DisplayPattern>
          <HTML><![CDATA[<p>hello world!!"]]></HTML>
          <HTML><![CDATA["</p>]]></HTML>         
        </DisplayPattern>
      </Field>



Viewing all articles
Browse latest Browse all 11571

Trending Articles



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