Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
function GetCurrentResult(measureTitle,fy,qtr)
{
alert("Current Result Function measure title:"+measureTitle);
alert("FY"+fy);
$().SPServices({
operation: "GetListItems",
async: false,
listName: "Current Results List",
//CAMLViewFields: "<ViewFields><ViewFields/>",
CAMLQuery:"<Query><Where><Eq><FieldRef Name='MeasureID' /><value Type='Text'>"+measureTitle+"</value></Eq></Where></Query>",
completefunc: function (xData, Status) {
alert(xData.responseXML.xml);
$(xData.responseXML).SPFilterNode("z:row").each(function(){
//var currResult = $(this).attr("ows_CurrentResultQtr"+qtr);
var currResult = $(this).attr("ows_CurrentResultQtr"+fy);
alert("CurrResult: "+currResult);
});
}
});
}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Join the community of 500,000 technology professionals and ask your questions.