Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Query A ProjectProperty With GetListItems

$
0
0

Hey guys I was just wondering if it's possible to include a ProjectProperty with the GetListItems function?  I'm unfortunately not getting much luck.  I'm trying to query the Description property below.

var myQuery = "<Query><Where><BeginsWith><FieldRef Name='ContentType' /><Value Type='Text'>News</Value></BeginsWith></Where></Query>";
$().SPServices({
	operation: "GetListItems",
	async: false,
	listName: "Pages",
	CAMLViewFields: "<ViewFields><FieldRef Name='Title' /><ProjectProperty Name='Description' /></ViewFields>",
	CAMLRowLimit: 5,
	completefunc: function (xData, Status) {
		$(xData.responseXML).SPFilterNode("z:row").each(function () {
			console.log($(this).attr('ows_Title'));
		});
	}
});


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>