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

New Post: GetListItems Recursive - SubFolders

$
0
0
Hi, I'm looking for a little help before I pull out the last two hairs on my head.

All I want to accomplish is to get the results of all items in a list that have the name Acura in the Program column.

All the data is the Pages Library under various folders. I have spend hours trying to look through the site and Google trying to find something that works. So far, nothing works.

Any help would be appreciated. Thank You!!

function tryAgain6(){
filePath = "CCUR/knowledge/Pages/";
listName = "{929DB3B3-BCD4-4AD2-AC82-7B0B8D0703F8}";

$().SPServices({
operation: "GetListItems",
async: false,
//webURL: filePath,
listName: listName,
CAMLQuery: "<Query><Where><Eq><FieldRef Name='Program' /><Value Type='Choice'>Acura</Value></Eq></Where></Query>",
CAMLViewFields: "<ViewFields><FieldRef Name='Program' /><FieldRef Name='EncodedAbsUrl' /><FieldRef Name='ContentType' /><FieldRef Name='Modified' /><FieldRef Name='FileRef ' /></ViewFields>",
CAMLQueryOptions: "<QueryOptions><IncludeMandatoryColumns>False</IncludeMandatoryColumns><ViewAttributes Scope='RecursiveAll' /><Folder>/CCUR/knowledge/Pages/Matrices/Roadside</Folder></QueryOptions>",
completefunc: function (xData, Status) {
    listLen = $(xData.responseXML).SPFilterNode("z:row").length;
    alert("itemCount = " + listLen);

    $(xData.responseXML).SPFilterNode("z:row").each(function() {
        itemProgram = $(this).attr("ows_Program");
        alert(itemProgram);
    });
}   
});
}
tryAgain6();

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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