So Ive been sitting for half a day already trying to solve that. I have been able to successfully run the following query to find a value of another column on a small test-list:
$(document).ready(function() {
var raz = "raz";
var queryLookup = "<Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>raz</Value></Eq></Where></Query>";
var itemfield="";
$().SPServices({
operation: "GetListItems",
async: false,
listName: "Testowa",
CAMLViewFields: "<ViewFields><FieldRef Name='kolumna'/></ViewFields>",
CAMLQuery: queryLookup,
completefunc: function(xData,Status) {
itemfield = $(xData.responseText).find("z\\:row").attr("ows_kolumna");;
alert(xData.responseText);
}
});
alert(itemfield);
});
but as soon as I try applying it to a bigger list (less than 5k elements though) it just does not want to work and gives me no elements found and the following message in console: SCRIPT5007: Unable to get property 'B' of undefined or null reference shellcoreprimeg2m_6bed6c50.js (22,23129)
Does anyone have any idea as to why this happens?