从Sharepoint日历中展开循环事件不适用于ViewFields查询 [英] Expanding of Recurring Events from a Sharepoint Calendar doesn't work for a ViewFields Query
问题描述
我的讯息是展开的继续
My post is a continue of Expand Recurring Events from a Sharepoint Calendar over WebServices?
问题是,当视图字段查询为null或空时,展开工作是正常的。但由于我设置了一些字段,所以响应与期望不符。
The problem is that expanding works while view fields query is null or empty. But since I set up some fields, the response doesn't match expectations.
我使用的Lists.asmx服务方法是
The Lists.asmx service method,that I use, is
public System.Xml.XmlNode GetListItems(string listName, string viewName, System.Xml.XmlNode query, System.Xml.XmlNode viewFields, string rowLimit, System.Xml.XmlNode queryOptions, string webID)
当我使用viewFields值时,不会展开重复事件:
When I use a viewFields value, presented below, the method doesn't expand recurrence events:
var viewFields = new XmlDocument();
viewFields.LoadXml(@"
<ViewFields>
<FieldRef Name='ID' />
<FieldRef Name='Title' />
</ViewFields>");
viewFields有什么问题?
What's wrong with a viewFields?
推荐答案
问题是视图字段应包含附加字段 EventDate , EndDate , fRecurrence < RecurrenceData 。当此项目不存在时,展开无效。因此,如果要检索类别(例如),您应该使用以下ViewFields查询:
The problem is that view fields should contain additional fields EventDate, EndDate, fRecurrence and RecurrenceData. When this items absent, expanding doesn't work. So, if you want to retrieve a Category (for example), you should use the following ViewFields query:
<ViewFields>
<FieldRef Name='EventDate' />
<FieldRef Name='EndDate' />
<FieldRef Name='fRecurrence ' />
<FieldRef Name='RecurrenceData' />
<FieldRef Name='Category' />
</ViewFields>
这篇关于从Sharepoint日历中展开循环事件不适用于ViewFields查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!