Condividi tramite


MAPPINGS Element (List)

Applies to: SharePoint Foundation 2010

Contains mappings of values to the choices displayed within a Choice field.

<MAPPINGS>
    <MAPPING
      Value = "Text">
    </MAPPING>
  ...
</MAPPINGS>

Attributes

Attribute

Description

None

N/A

Child Elements

MAPPING

Parent Elements

Field

Occurrences

Minimum: 0

Maximum: 1

Example

The following excerpt shows how to implement the MAPPINGS element in a Choice field.

<Field ID="{c15b34c3-ce7d-490a-b133-3f4de8801b76}" Type="Choice" Name="Status" DisplayName="$Resources:core,Tasks_Status;" SourceID="https://schemas.microsoft.com/sharepoint/v3" StaticName="Status">
  <CHOICES>
    <CHOICE>$Resources:core,Tasks_NotStarted;</CHOICE>
    <CHOICE>$Resources:core,Tasks_InProgress;</CHOICE>
    <CHOICE>$Resources:core,Tasks_Completed;</CHOICE>
    <CHOICE>$Resources:core,Tasks_Deferred;</CHOICE>
    <CHOICE>$Resources:core,Tasks_Waiting;</CHOICE>
  </CHOICES>
  <MAPPINGS>
    <MAPPING Value="1">$Resources:core,Tasks_NotStarted;</MAPPING>
    <MAPPING Value="2">$Resources:core,Tasks_InProgress;</MAPPING>
    <MAPPING Value="3">$Resources:core,Tasks_Completed;</MAPPING>
    <MAPPING Value="4">$Resources:core,Tasks_Deferred;</MAPPING>
    <MAPPING Value="5">$Resources:core,Tasks_Waiting;</MAPPING>
  </MAPPINGS>
  <Default>$Resources:core,Tasks_NotStarted;</Default>
</Field>