深入浅出Nintex——新增、更新和删除列表中的条目
2010-11-27 21:45
597 查看
新增(New)
更新(Update)
代码
删除(Delete)
If you need to delete an item from a document library you will need to use CAML and only the URL of the document should be sufficient
扩展阅读:http://connect.nintex.com/forums/thread/6929.aspx[/code]
<Batch PreCalc='TRUE' OnError="Continue"> <Method ID="1" Cmd="New"> <Field Name='ID'>New</Field> <Field Name='ID'>Mingle</Field> </Method> </Batch>
更新(Update)
代码
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <UpdateListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <listName>{Common:ListName}</listName> <updates> <Batch OnError="Continue"> <Method ID="1" Cmd="Update"> <Field Name="ID">{ItemProperty:ID}</Field> <Field Name="FileRef">{Common:WebUrl}/{Common:ListName}/{Common:ItemDisplayName}.xml</Field> <Field Name="BaseName">test</Field> </Method> </Batch> </updates> </UpdateListItems> </soap:Body> </soap:Envelope>
删除(Delete)
<Batch PreCalc='TRUE' OnError="Continue"> <Method ID="1" Cmd="Delete"> <Field Name='ID'>{WorkflowVariable:ItemID}</Field> </Method> </Batch>
If you need to delete an item from a document library you will need to use CAML and only the URL of the document should be sufficient
<Batch OnError="Continue"> <Method ID="1" Cmd="Delete"> <Field Name="ID">1</Field> <Field Name="FileRef">http://{servername}/{LibraryName}/document.xml</Field> </Method></Batch> If you are trying to delete an item inside a list then you nedd to ahve the id an you can construct the caml something like this\ [code]<Batch OnError="Continue"> <Method ID="1" Cmd="Delete"> <Field Name="ID">1</Field> </Method></Batch>
扩展阅读:http://connect.nintex.com/forums/thread/6929.aspx[/code]
相关文章推荐
- Solr 新增、更新、删除索引
- JAVA之Mybatis基础入门二 -- 新增、更新、删除
- 双表对比,获得新增、更新、删除数据的表,获得用于更新表的SQL语句方法
- c#窗体控件datagriview与dataset的运用:修改,新增,删除,查找,保存,更新
- ASP.NET MVC 4 中 Controller 与 ApiController 做读取、新增、更新、删除 ( CRUD )
- SQL基本操作 - 新增、查看、更新、删除数据库
- 一个实现数据增量加载的ETL算法(记录新增、更新和删除标志)
- jqGrid的使用方法(编辑,删除,更新,新增)
- 限制用户不能删除SharePoint列表中的条目(项目)
- JQuery操作SharePoint Web Services之删除和更新列表数据
- cassandra新增、更新、删除数据。
- jqGrid的使用方法(编辑,删除,更新,新增)
- MOSS: SPSecurity.RunWithElevatedPrivileges提升权限来新增列表条目示例
- JQuery操作SharePoint Web Services之删除和更新列表数据
- python列表操作实例源码讲解(创建、使用、更新、删除)
- Magento-如何新增、更新或者删除数据库中的数据
- 实现列表手势向左向右滑动删除条目
- 实现列表双击可编辑,异步更新;实现删除的即时移除;
- DWZ列表删除后不自动更新-解决
- 第二章:lucene构建索引(新增、查询、更新、删除)