I'm making a JavaScript extension for form elements. The goal is to bind it to a lookup and react on change. Since I'm weak at webservices, I'm using SPServices.
var lookupFieldInternalName = "LookupOne";
$().SPServices({
operation: "GetList",
listName: "Spis",
completefunc: function(xData, Status) {
console.log(xData.responseText);
$(xData.responseXML).find("Fields > Field[Name='" + lookupFieldInternalName + "']").each(function() { ... });
}
});
Inside I want to make a query to the list with lookup values. But in the field I get the only thing I have is the lookup's list Guid.
How can I get the lookup list name to query it? Or, how to query a list when all I got is a Guid?
Please provide code examples.

0 commentaires:
Enregistrer un commentaire