当前位置: 代码迷 >> SharePoint >> ListInstance乱码有关问题
  详细解决方案

ListInstance乱码有关问题

热度:167   发布时间:2016-05-02 07:23:11.0
ListInstance乱码问题
Element.xml文件:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ListInstance Title="设备清单"
                OnQuickLaunch="TRUE"
                TemplateType="100"
                FeatureId="00bfea71-de22-43b2-a848-c05709900100"
                Url="Lists/Device"
                CustomSchema="Device\Schema.xml"
                Description="">
  </ListInstance>
</Elements>

Schema.xml文件:
<?xml version="1.0" encoding="utf-8" ?>
<List xmlns="htt://schema.microsoft.com/sharepoint" Direction="$Resources:Direction;" BaseType="0">
  <MetaData>
    <ContentTypes>
      <ContentType ID="" Name="Device" Group="Custom Content Types" Version="0" Inherits="false">
        <FieldRefs>
          <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}"/>
          <FieldRef ID="{475c2610-c157-4b91-9e2d-6855031b3538}"/>
        </FieldRefs>
      </ContentType>
    </ContentTypes>
    <Fields>
      <Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" DisplayName="设备名称" Type="Text" Required="true" />
      <Field ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" Name="LinkTitleNoMenu" DisplayName="设备名称" Type="Computed"/>
      <Field ID="{475c2610-c157-4b91-9e2d-6855031b3538}" Name="FullName" DisplayName="联系人" Type="Text" Required="false"></Field>
    </Fields>
    <Views>
      <View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
        <Toolbar Type="Standard" />
        <XslLink Default="TRUE">main.xsl</XslLink>
        <RowLimit Paged="TRUE">30</RowLimit>
        <ViewFields>
          <FieldRef Name="LinkTitleNoMenu"></FieldRef>
        </ViewFields>
        <Query>
          <OrderBy>
            <FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
          </OrderBy>
        </Query>
        <ParameterBindings>
          <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
  相关解决方案