JSOM List Operations in SharePoint Apps in a proper way (Provider Hosted and SharePoint Hosted) – Search
In my previous post (JSOM List Operations in SharePoint Apps in a proper way (Provider Hosted and SharePoint Hosted)–CRUD) I have explained how to work with basic list operations. Here I’m explaining the CAML and search options that we can perform. (function (spa, $, undefined) { window._sa = spa; _sa.ctx = null; _sa.web = null; // this should be initialised _sa.configs = { SPHostUrl: "", SPAppWebtUrl: "", isCrossDomain: false }; // init(); utils.log(_sa.configs.SPHostUrl); utils.log(_sa.configs.SPWebtUrl); function init() { if (!_sa.configs.SPAppWebtUrl) { alert("Please initialize _sa.configs"); } if (_sa.configs.isCrossDomain) { _sa.ctx = new SP.ClientContext(_sa.configs.SPAppWebtUrl); var factory = new SP.ProxyWebRequestExecutorFactory(_sa.configs.SPAppWebtUrl); _sa.ctx.set_webRequestExecutorFactory(factory); ...