How to create SharePoint List views in List Schema

      I have created custom view through list schema in VS 2012. While creating first time i cant able to get the custom view under the list settings view. I miss some fields. Using the following code i can able to see the view in under the list settings view.
 We can create the number of views based on "BaseViewID" , Default while creating list in Visual Studio BaseViewID="1". While creating more views BaseViewID must be 'Unique'.

<View Name="{7689D8A2-546E-4371-84B0-7656B654A6SW}" BaseViewID="2" Type="HTML" WebPartZoneID="Main" DisplayName="sp" MobileView="TRUE" Url="sp.aspx" ImageUrl="/_layouts/15/images/generic.png" SetupPath="pages\viewpage.aspx" DefaultView="FALSE" TabularView="FALSE" ModerationType="Moderator"  >
        <Toolbar Type="Standard" />
        <XslLink Default="TRUE">main.xsl</XslLink>
        <RowLimit Paged="TRUE">30</RowLimit>
          <FieldRef Name="Name"/>
          <FieldRef Name="Adress"/>
            <FieldRef Name="ID">
          <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
          <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />


Lakshmi Tulasi Jasti

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment


Post a Comment