Is it possible to change the value of BaseViewID?

According to this - http://207.46.16.248/en-us/library/microsoft.sharepoint.spview.baseviewid(office.12).aspx - you can only get BaseViewID from a list view.

If you create a new listview through the sharepoint ui it will automatically add up by 1, BUT if you create a new listview programmatically it will take a (from my experience) random already existing BaseViewID and give the new view that ID as well.

So my big question is -- Is it possible to change the value of BaseViewID programmatically?

Answers


I was having the same problem as well. What I had to do was create a new List Definition and include that in my solution. In the Schema.xml file I just created a new view using the XML. Then you can change the BaseViewId to whatever you want.


Need Your Help

Unreachable Code Detected Return Value

c# asp.net-mvc

How to return value with this issue?

Can't compile app built with earlier version of android on newer version of Android

android mobile android-3.0-honeycomb android-4.2-jelly-bean

I have an existing Android app that was originally built using Android 11. However, the newest version of the ADT only allows me to compile with Android 17 so my app will not run. How do I get the ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.