Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Reading FLDTYPES.XML

  Asked By: Ruchir    Date: May 04    Category: Sharepoint    Views: 2136

I would like to create an Elements.xml that contains custom fields
that I define.

An example from MS Looks like this:

<?xml version="1.0" encoding="utf-8" ?>

- <Elements xmlns="http://schemas.microsoft.com/sharepoint/">

- <Field ID="GUID" Name=" " Group="" Type="Choice" DisplayName="Region"
SourceID="http://schemas.microsoft.com/sharepoint/v3/fields"
StaticName="Region" Description="" Sealed="TRUE" Required="TRUE"
AllowDeletion="FALSE" FillInChoice="FALSE">

- <CHOICES>

<CHOICE>ASPAC</CHOICE>

<CHOICE>Americas</CHOICE>

<CHOICE>EMA</CHOICE>

</CHOICES>

<Default>EMA</Default>

</Field>

</Elements>

This field type is Choice. I couldn't find a good resource that tells me
what possible types there are. I know FLDTYPES.xml describes the field
types, but I don't know at all how to read it.

How do I know what XML elements are available for which types?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Caleb Gordon     Answered On: May 04

Here it is

msdn2.microsoft.com/en-us/library/ms437580.aspx

I can't figure out how to do Multiline Rich Text Though

Type=

Note

Allows users to enter multiple lines of text. This field  is not sortable
or groupable.

All text is defined to be straight ASCII characters without HTML markup.
Anything that looks like HTML markup or a URL is simply quoted (for
example, Server.HTMLEncode) to look like straight text. The control for
editing this format is a simple TEXTAREA block. Use the NumLines
attribute to specify the number of lines to display. Corresponds to the
ntext SQL data type  and represented by the SPFieldMultiLineText
<msdn2.microsoft.com/.../...ft.sharepoint.spfieldmu
ltilinetext.aspx> class.

Text

A single line of text entered in an edit box. This field is sortable and
groupable. Use the MaxLength attribute to set a maximum number of
characters allowed. Corresponds to the nvarchar SQL data type and
represented by the SPFieldText
<msdn2.microsoft.com/.../...ft.sharepoint.spfieldte
xt.aspx> class.

I'm guessing this tag will work?

<Field ID="GUID"

Name="BYUIWebContent1"

Group"BYUI Custom Fields"

Type="Note"

DisplayName="Web Content 1"

SourceID="http://schemas.byui.edu/sharepoint/v3/fields"

StaticName="BYUI Web Content 1"

Description="Custom Column"

Sealed="True"

Required="True"

AllowDeletion="False"

AllowHyperlink="True"

RichText = "True"/>

I realize the best way to find  out is to try it. I just was hoping
someone could raise a red flag if I'm giong the wrong direction. Is
there a Type RichText? Instead of type Note that I ought to be using?

 
Didn't find what you were looking for? Find more on Reading FLDTYPES.XML Or get search suggestion and latest updates.




Tagged: