Friday, January 2, 2015

How to delete single list item delete in list or Library using SP Services

  
//Single list item deleted
function singlelistitem()

{$().SPServices.SPUpdateMultipleListItems({
async: true,
listName: "Testdata",
batchCmd: "Delete",
CAMLQuery: ""<Query><Where><Eq><FieldRef Name='ID'/><Value
Type='Counter'>8</Value></Eq></Where></Query>",",
completefunc: function (xData, Status) {
alert("Sucess");
} //completefunc
});
}


1 comment:

  1. Perfectly working. Its very much useful to delete items in list as well as library

    ReplyDelete