开发者

Is it possible to change the value of BaseViewID?

开发者 https://www.devze.com 2023-03-14 17:03 出处:网络
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.

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号