Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: GetListItems code generator example

NisusMage wrote:

Ah, thanks very much. 

I jumped the gun there and didn't do my debugging and just assumed this wasn't working.

I see that the code is supposed to dump a table of all the columns. This doesn't seem to work. 

I'm pointing to an asset library with images in. Would this make the difference? The selection list is empty.

--Update:

I've added some debugging into the script above. It appears that in the area where it is supposed to populate the <table> with the list of checkboxes, it's failing with a SharePoint error 'List does not exist'. This is happening to every list.

This is the debug code:

//debug
var out = $().SPServices.SPDebugXMLHttpResult({
			node: xData.responseXML
			}); 
$("#WSOutput").html("").append("<b>This is the output from the GetList operation:</b>" + out);
//end debug

 

Okay solved the SAGA.

I've changed the "this.value" code to the follow. Note the commented out bit.

operation: "GetList",
webURL: $('#siteURL').text(),
listName: $('#ListSlct').val(), //this.value,
async: false,


Viewing all articles
Browse latest Browse all 6517

Trending Articles