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'.
Example:2,3,4...
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'.
Example:2,3,4...
<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>
<JSLink>clienttemplates.js</ JSLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="Name"/>
<FieldRef Name="Adress"/>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="ID">
</FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss, noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss, noXinviewofY_DEFAULT)" />
</ParameterBindings>
</View>