Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with customProperties on declaring a new field in a feature

1 view
Skip to first unread message

box...@nospam.nospam

unread,
Jun 29, 2009, 10:20:01 AM6/29/09
to

Hi, I am looking to have a custom property for a custom SPField. I would
like to have the value of property set automatically when the field is added
through a feature. I'm not exactly sure how to achieve this. Can anyone
help out? Where would I set the value for the CustomProperty?

This is the xml in the flyTypes_xxx
<FieldTypes>
<FieldType>
<Field Name="TypeName">CustomChoiceLookup</Field>
<Field Name="TypeDisplayName">Custom Choice Lookup</Field>
<Field Name="TypeShortDescription">Custom Choice Lookup</Field>
<Field Name="ParentType">MultiChoice</Field>
<Field Name="UserCreatable">TRUE</Field>
<Field Name="FieldTypeClass">c2f1cf54-0925-45c9-8010-c1081b9d0b6c</Field>
<Field
Name="FieldEditorUserControl">/_controltemplates/CustomChoiceFieldEditor.ascx</Field>
<Field Name="Filterable">TRUE</Field>
<RenderPattern Name="DisplayPattern">
<Column HTMLEncode="TRUE" />
</RenderPattern>
<PropertySchema>
<Fields>
<Field Name="ChoiceXmlUrl" Hidden="TRUE" DisplayName="Choice Xml URL"
Type="Text" />
</Fields>
</PropertySchema>
</FieldType>

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field Name="GU" Type="CustomChoiceLookup" DisplayName="GU" Group="My
Publishing" ID="{3743f2ef-7cc5-480b-be8c-35e3750f4ed1}" StaticName="GU"
Required="FALSE" />

</Elements>

0 new messages