这篇文章继续上次的http://www.cnblogs.com/fanwenxuan/archive/2009/12/26/1632998.html操作环境。介绍一下更新和删除列表:

更新列表效果图如下:

JQuery操作SharePoint Web Services之删除和更新列表数据删除的代码如下:

 

 

var batch =
    
"<Batch OnError='Continue'> \
    <Method ID='1' Cmd='Delete'> \
    
<Field Name='ID'>"+itemid+"</Field> \
    
</Method> \
    
</Batch>";    

 

更新的代码如下:

 

代码
var batch =
    
"<Batch OnError='Continue'> \
    <Method ID='1'  Cmd='Update'> \
    
<Field Name='ID'>"+itemid+"</Field> \
    
<Field Name='Title'>"+title+"</Field> \
    
<Field Name='City'>"+city+"</Field> \
    
</Method> \
    
</Batch>";

 

希望对需要的朋友有帮助。

相关文章:

  • 2021-09-19
  • 2021-10-16
  • 2021-08-15
  • 2021-11-21
  • 2021-09-11
  • 2021-11-26
  • 2021-09-27
  • 2021-12-10
猜你喜欢
  • 2022-01-10
  • 2021-12-20
  • 2022-01-09
  • 2021-06-02
  • 2021-09-06
相关资源
相似解决方案