How would I pass in the mapping as a variable object?
Not to familiar with JSON/javascript arrary columns:
Not to familiar with JSON/javascript arrary columns:
function GetlistOps(myList, myList, myMap) {
myJson = null;
$().SPServices({
operation: "GetListItems",
async: false,
webUrl: myUrl,
listName: myList
completefunc: function (xData, Status) {
myJson = $(xData.responseXML).SPFilterNode("z:row").SPXmlToJson({
mapping: {
ows_LinkFilename: { mappedName: "Filename", objectType: "Text" },
//instead pass in the myMap variable
}, // name, mappedName, objectType
includeAllAttrs: false
});
return myJson
}// End of completefunc
}); //End of SPService
};