我正在尝试使用另一个视图作为模板以编程方式创建一个视图。我已经让一切正常(创建视图,然后使用 updateView)。唯一的障碍是我正在尝试设置TabularView=FALSE
,但没有进行更改。这是我到目前为止的代码
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
System.Xml.XmlNode viewProperties = doc.CreateNode(System.Xml.XmlNodeType.Element,"View","");
System.Xml.XmlAttribute attr = doc.CreateAttribute("TabularView");
attr.Value = "FALSE";
viewProperties.Attributes.SetNamedItem(attr);
System.Xml.XmlNode resNode = view.UpdateView(listname, name, viewProperties, query, viewFields, null, null, rowLimit);
像往常一样,updateView 上的 MSDN 页面不提供有关 viewProperties 参数的任何信息
请注意,我只能使用 WebServices