//Add reference in js file
<script src="/js/jquery.SPServices-0.7.2.min.js"type="text/javascript"></script>
//CAML Query that will be used in SPServices GetListItems Operation
var funderQuery = "<Query>" +
"<Where>" +
"<Eq>"+
"<FieldRef Name='ID' /><Value Type='Text'>"+thisItemID+"</Value>"+
"</Eq>"+
"</Where>" +
"</Query>";
$().SPServices(
{
operation: "GetListItems",
async: false,
listName: "ListName",
CAMLViewFields: "<ViewFields><FieldRef Name='FieldInternalName' /> </ViewFields>",
CAMLQuery: funderQuery,
completefunc: function (xData, Status)
{
if (Status == "success")
{
//alert(xData.responseText);
$(xData.responseXML).SPFilterNode("z:row").each(function()
{
var field = $(this).attr("ows_FieldInternalName");
});
}
}
});
<script src="/js/jquery.SPServices-0.7.2.min.js"type="text/javascript"></script>
//CAML Query that will be used in SPServices GetListItems Operation
var funderQuery = "<Query>" +
"<Where>" +
"<Eq>"+
"<FieldRef Name='ID' /><Value Type='Text'>"+thisItemID+"</Value>"+
"</Eq>"+
"</Where>" +
"</Query>";
$().SPServices(
{
operation: "GetListItems",
async: false,
listName: "ListName",
CAMLViewFields: "<ViewFields><FieldRef Name='FieldInternalName' /> </ViewFields>",
CAMLQuery: funderQuery,
completefunc: function (xData, Status)
{
if (Status == "success")
{
//alert(xData.responseText);
$(xData.responseXML).SPFilterNode("z:row").each(function()
{
var field = $(this).attr("ows_FieldInternalName");
});
}
}
});
No comments:
Post a Comment