Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用web服务更新sharepoint中的项目属性_Sharepoint_Service - Fatal编程技术网

使用web服务更新sharepoint中的项目属性

使用web服务更新sharepoint中的项目属性,sharepoint,service,Sharepoint,Service,我在VB中得到了这段代码。它什么也没用。有人能帮我理解为什么,并给我一个解决方案吗 Dim updatestr As String = "<Method ID='1' Cmd='Update'>" + _ "<Field Name='Title'>Ficha_router</Field>" + _ "<Field Name='ID_Cliente'>0000</Field>" + _

我在VB中得到了这段代码。它什么也没用。有人能帮我理解为什么,并给我一个解决方案吗

Dim updatestr As String = "<Method ID='1' Cmd='Update'>" + _
            "<Field Name='Title'>Ficha_router</Field>" + _
            "<Field Name='ID_Cliente'>0000</Field>" + _
            "</Method>"


            Dim xmlDoc = New System.Xml.XmlDocument()

            Dim elBatch As System.Xml.XmlElement = xmlDoc.CreateElement("Batch")

            elBatch.SetAttribute("OnError", "Continue")
            elBatch.SetAttribute("ListVersion", "1")
            elBatch.SetAttribute("ViewName", "")

            elBatch.InnerXml = updatestr

            listService.UpdateListItems("Flecha", elBatch)
Dim updatestr As String=”“+_
“Ficha_路由器”+_
"0000" + _
""
Dim xmlDoc=New System.Xml.XmlDocument()
Dim elBatch As System.Xml.xmlement=xmlDoc.CreateElement(“批处理”)
SetAttribute(“OnError”、“Continue”)
SetAttribute(“ListVersion”、“1”)
elBatch.SetAttribute(“ViewName”,“”)
elBatch.InnerXml=updatestr
更新列表(“Flecha”,elBatch)
您可能需要添加
9
,以便Web服务确定需要更新的项目

我已经解决了

我通过web服务检索项目“ID”字段,然后更新它。我只是觉得UpdateList可以在我不知道ID的情况下找到我的文件


无论如何,谢谢。

问题在于,我正试图更新刚上传到库中的已确定文件中的某些必填字段。然后,当我刷新库时,会显示文件(我还有一个例行程序要在文件中就地检查),但我需要更新的字段没有发生任何变化。是的,这不是最好的要求。