owssvr.dll返回列表的默认视图,而不是指定的视图 [英] owssvr.dll returns default view of list and not specified view
问题描述
我正在尝试使用 owssvr.dll从sharepoint 2010列表中提取数据但是如果我使用文档中的语法,并且在所有示例中我都没有获得数据,如果我更改了语法有点我从
列表的默认视图中获取数据。
如果我使用以下语法:
http :// [MyServer的] /位点/ [mysite的] /_vti_bin/owssvr.dll?Cmd=Display&List= {[MYLIST]}&安培;查看= {[MyView的]}&安培; XMLDATA = TRUE&安培; noredirect =真
我得到一个"页面无法显示" (MyList和MyView是正确的值)。如果我在URL中将视图更改为viewID(下面突出显示更改),那么我使用下面的内容从列表中的默认视图中获取数据。
我可能遗漏了一些明显的东西但是我无法看到它,所以任何帮助都会受到赞赏。
http:// [MyServer] / sites / [MySite] /_vti_bin/owssvr.dll?Cmd=Display&List= {[ MyList]}&查看 ID = {[MyView]}& XMLDATA = TRUE& noredirect = true
Bispen
嗨
语法如下:
http://sharepoint.com/ _vti_bin / owssvr.dll?Cmd =显示&列表=<<< LIST-GUID>>& XMLDATA = TRUE
更多细节请参考以下链接:
http://www.sharepointdiary.com/2012/02/using-owssvrdll-to-retrieve-list-data.html 跨度>
I am trying to extract data from a sharepoint 2010 list by using owssvr.dll but if I use the syntax found in the documentation and in all examples for such a query I get no data and if I change the syntax a bit I get data from the default view on the list.
If I use the following syntax:
http://[MyServer]/sites/[MySite]/_vti_bin/owssvr.dll?Cmd=Display&List={[MyList]}&View={[MyView]}&XMLDATA=TRUE&noredirect=true
I get a "page cannot be displayed" (MyList and MyView are correct values). If I change view to viewID in the URL (change highlighted below) so I use the below I get data from the default view on the list.
I am probably missing something obvious but I cannot see it so any help would be appreciated.
http://[MyServer]/sites/[MySite]/_vti_bin/owssvr.dll?Cmd=Display&List={[MyList]}&ViewID={[MyView]}&XMLDATA=TRUE&noredirect=true
Bispen
Hi
Syntax is below:
http://sharepoint.com/_vti_bin/owssvr.dll?Cmd=Display&List=<<LIST-GUID>>&XMLDATA=TRUE
more details please refer to below link:
http://www.sharepointdiary.com/2012/02/using-owssvrdll-to-retrieve-list-data.html
这篇关于owssvr.dll返回列表的默认视图,而不是指定的视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!