尝试导出sharepoint列表的视图 [英] Trying to export view of sharepoint list

查看:89
本文介绍了尝试导出sharepoint列表的视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个自定义应用程序,需要一个sharepoint列表视图,现在它已经坏了,问题出在我以前调用的实际XML中检索视图的条目:

I did a custom application which required a sharepoint list view, now it's broken, the problem is in the actual XML that i used to call to retrieve the entries for the view:




http://site/_vti_bin/owssvr.dll?Cmd =显示&列表= {1}& View = {2} & XMLDATA = TRUE

http://site/_vti_bin/owssvr.dll?Cmd=Display&List={1}&View={2}&XMLDATA=TRUE

用于以xml格式向我提供列表视图的所有条目的请求。现在它给了我一个包含0b数据的文件。

The request used to give me all the entries for the view of the list in a xml format. Now it gives a me a file with 0b data in it.

测试了另一个包含相同网站的列表并且它正常工作。

Tested another list withing the same site and it worked normally.

已经测试过创建列表的另一个视图,检查权限。条目存在,但由于某种原因,在查询数据时它根本没有检索任何内容。

Already tested creating another view of the list, checked permissions. The entries are there but for some reason when queryng the data it retrieves nothing at all.

推荐答案

嗨Kansbar,

Hi Kansbar,

我尝试在我的环境中测试相同的端点,如下所示:

I tried to test the same endpoint inside my environment like this:

http://sp/sites/jerry/_vti_bin/owssvr.dll?Cmd=Display&List={DA02F371-A260-453F-B6D2-392ED55F1827}&View={7D97606A-9659-4E6C-B46B-04D93E840EDA}&XMLDATA=TRUE

我建议你可以使用SharePoint Designer查看List Guid和View Guid,并确保它们有效:

I would suggest you could check the List Guid and View Guid using SharePoint Designer and make sure they are valid:

List Guid:

List Guid:

< img alt =""src ="https://social.msdn.microsoft.com/Forums/getfile/1434551">

查看指南:

然后它将显示正确的xml数据:

Then it will display the correct xml data:

谢谢

最好的问候


这篇关于尝试导出sharepoint列表的视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆