English 中文(简体)
分享点,如何使用哪一条款更新网络服务的一个清单?
原标题:SharePoint, how to update a list item from web service using a where clause?

我有了一个需要更新清单项目的设想,但我不知道清单项目的内部识别,因此,我赢得了以下工作:

batchElement.InnerXml = "<Method ID= 1  Cmd= Update >" +
            "<Field Name= ID >" + id + "</Field>" + 
            "<Field Name= DeliveryStatus >" + newStatus.ToString() + "</Field></Method>";

相反,我还有另一个领域,即所谓的进程清单:

因此,我要更新工序=X的交付情况。

能否利用“共享”网站服务。

我所想的一种解决办法是,首先在程序信息数据库的基础上选择国际发展法,然后根据这一国际发展法进行更新,但这似乎像一个高奇的解决办法,即MOSSCAML的发明者肯定会以某种方式提供更新清单项目的途径,或者利用另一个领域进行过滤而不是简单老的识别?

增 编

最佳回答

我不相信你能够做一次进步会。 你们需要获得与你的特定程序信息数据库相匹配的所有物品,以便获得每个项目信息。

由于你重新使用网络服务,提高这种效率的一个途径是,确保你在你行使选择权时确定观点领域的财产,以便将其限制在你感兴趣的一栏(此处为ID)。

例:

XmlDocument xmlDoc = new System.Xml.XmlDocument();
XmlNode ndQuery = xmlDoc.CreateNode(XmlNodeType.Element, "Query", "");
XmlNode ndViewFields = xmlDoc.CreateNode(XmlNodeType.Element, "ViewFields", "");
XmlNode ndQueryOptions = xmlDoc.CreateNode(XmlNodeType.Element, "QueryOptions", "");

ndQueryOptions.InnerXml = "<ViewAttributes Scope= Recursive  />";
ndViewFields.InnerXml = "<FieldRef Name= ID  />";
ndQuery.InnerXml = query;
问题回答

暂无回答




相关问题
SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

UI automated testing within SharePoint

I m looking for automated Functional Testing tools that can manipulate SharePoint sites, libraries, and documents thought the web interface. It needs to be extensible enough to handle any custom ...

Enable authorization on sitemap provider

I want to enable Authorization on the Site map provider. We have enabled anonymous access to the site and we want the Site map provider to be visible only to authorized users. I tried ...

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

Sharepoint 2007 Data view Webpart custom parameters

I m sort of new to the custom parameters that can be setup on a DataView Webpart. There are 6 options: - None - Control - Cookie - Form - QueryString - Server Variable I think that None, Cookie and ...

热门标签