开发者

SharePoint How To Get a ViewName

I need to get data from SharePoint by using web service. I did it, but i don't know how to get data from View.

XmlNode itemNode = spList.GetListItems(url[1], 
                                       null, 
                                       ndQuery, 
                                       ndViewFields, 
                                       null, 
                                       ndQueryOptions, 
                                       null);

Second parameter must be ViewName.

I have found System.Xml.XmlNode ndListView = spList.Ge开发者_开发问答tListAndView(url[1], ""); but it return default ViewName ("AllItems") guid. There's more than two views.

Is any idea?


i have solved the problem. I have used List web service but there's another View. So I looked it and found the method i need GetViewCollection, as i remember. That's all!


You can use GetList method, which returns a Caml List Schema and from which you can extract a description of all view.
GetList method

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜