Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Get List items from specific folder using ecma script in SharePoint2010

$
0
0

Hi,

I need to get List items from splist using client object ecma script. I am getting the folders name by this code 

    var context = null;
    context = SP.ClientContext.get_current();
    var IntstituionsList = context.get_web().get_lists().getById(listTitle);
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View Scope=\'RecursiveAll\'><RowLimit>5</RowLimit></View>');
    camlQuery.set_folderServerRelativeUrl('Sales/Lists/Institutions/ATLANTA');
    healthlistItems = IntstituionsList.getItems(camlQuery);
    context.load(healthlistItems, 'Include(LinkTitle,ID,Territory)');

but i need to get the items.Please help.....

Thanks.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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