Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to access a Particular 'Read List' operation in CSOM using Jquery..

$
0
0

I read the article below and found that multiple 'Read List' operations can be defined in same ECT as needed.

https://howtodowithsharepoint.wordpress.com/2014/06/01/sharepoint-2013-how-to-develop-filtered-views-for-external-lists-using-business-data-connectivity-service/

I found it interesting...

My main question is, I use below code to get this List records for any processing on UI..

        var ctx = new SP.ClientContext.get_current();
        var web = ctx.get_web();
        //Platform
        var list = web.get_lists().getByTitle('<List Name>');
        var query = new SP.CamlQuery();

        query.set_viewXml('<View><ViewFields><FieldRef Name="Field1" /><FieldRef Name="Field2" /></ViewFields></View>');
        items = list.getItems(query);
        ctx.load(items, 'Include(Field1, Field2)');

Where do I specify which one 'Read List' operation should above be executed upon?

Viewing all articles
Browse latest Browse all 7589

Trending Articles