Wednesday, December 23, 2015

How to get all fields from sharepoint list in SPServices CAMLViewFields

CAMLViewFields: "<ViewFields Properties='True' />",

$().SPServices({
operation: "GetListItems",
async: false,
listName: "Employee",
CAMLViewFields: "<ViewFields Properties='True' />",

completefunc: function (xData, Status) {
$(xData.responseXML).find("[nodeName='z:row']").each(function () {
alert($(this).attr("ows_TotalHours"));
});
}
});

No comments:

Post a Comment