views:

594

answers:

1

I am trying to create a custom field type in SharePoint. My custom field type has a custom property called CustomProperty.

<FieldTypes>
  <FieldType>
    <Field Name="TypeName">CustomField</Field>
    <Field Name="InternalType">CustomField</Field>
    ..............................
    ..............................
    <PropertySchema>
      <Fields>
        <Field Name="CustomProperty" DisplayName="CustomProperty" Type="Text" Hidden="TRUE" />
      </Fields>
      <RenderPattern Name="DisplayPattern">
      <Property Select="CustomProperty" />
    </RenderPattern>
  </FieldType>
</FieldTypes>

I am trying to render the value of this custom property in the DisplayPattern.

But it looks like the CAML is not able to reference the custom properties.

I am not getting any value for the CustomValue property even though it is set correctly.

Any idea how to refer custom properties in CAML?

A: 

Here is a sample:

http://blogs.msdn.com/toddca/archive/2009/01/23/customizing-the-rendering-of-a-custom-spfield.aspx

I haven’t tried it myself, and I have no idea if changing the SchemaXml could cause any unexpected problems.

JMD