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

Accessing Parent List Content in host web using ListData.svc from SharePoint App

$
0
0

I have a SharePoint App which needs to load the contents of a list in the host web.  I am using ListData.svc and the following code.


    var listUrl = https://jspsite/sites/MyDevSite/_vti_bin/ListData.svc/EventCal1
    try {
        $.getJSON(listUrl, function (data) {
            alert("Pre result.");
            for (var i = 0; i < data.d.results.length; i++) {
                alert("Result");
            }
        });
    } catch (e) {
        alert("Error");
    }
But for some reason this call does not work.  Any help will be much appreciated.



Viewing all articles
Browse latest Browse all 25064

Trending Articles



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