我已经为一个列表编写了一个模式,该列表只需要向默认自定义列表添加一列,该列表是一个称为月份的数字字段。该字段显示在默认视图上,并且确实是在列表中创建的。该列表会自动填充正确设置的值。问题是该字段没有出现在显示/编辑/新页面上。可以通过数据表视图进行设置。我不明白为什么当我在架构中专门设置它时它没有出现。
将非常appriciate任何建议。
<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint"
Title="ReviewPeriods"
FolderCreation="FALSE"
Direction="$Resources:Direction;"
Url="Lists/ReviewPeriods"
EnableContentTypes="TRUE"
BaseType="0">
<MetaData>
<ContentTypes>
<ContentTypeRef ID="0x01">
<Folder TargetName="Item" />
</ContentTypeRef>
</ContentTypes>
<Fields>
<Field ID="{B99EB797-4057-4a75-90BF-B40D0F89A9D9}"
Type="Number"
Decimals="0"
Min="0"
Max="100"
Percentage="FALSE"
Name="Months"
Required="TRUE"
Group="SEED"
DisplayName="Months"
StaticName="Months"
ShowInDisplayForm="TRUE"
ShowInEditForm="TRUE"
ShowInNewForm="TRUE">
</Field>
</Fields>
<Views>
<View BaseViewID="0"
Type="HTML"
WebPartZoneID="Main"
DisplayName="Default View"
DefaultView="TRUE"
SetupPath="pages\viewpage.aspx"
ImageUrl="/_layouts/images/generic.png"
Url="AllItems.aspx">
...隐藏的东西...
<ViewFields>
<FieldRef Name="LinkTitle"></FieldRef>
<FieldRef Name="Months"></FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="Title">
</FieldRef>
</OrderBy>
</Query>
</View>
</Views>
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
</Forms>
</MetaData>
</List>