New answers tagged

0

In my previous project to read the data from excel which is placed in a library from the same site, I used ExcelPLus, its a free JavaScript plugin, include that in your SharePoint page and read the content of your excel file very easily. Below code snippet shows how to open and display the content of an excel sheet. var ep=new ExcelPlus(); // we call ...


0

I have used window keyword to create dynamic variables to achieve the above scenario. var oList = clientContext .get_web() .get_lists() .getByTitle("List Name"); for (index = 0, i = 1; some_valid _condition; index++, i++) { window["camlQuery" + i] = new SP.CamlQuery(); window["camlQuery" + i].set_viewXml("<View><Query><...


0

On the list custom form, the following works for me. $(document).ready(function () { //run the code only after sp.js has been loaded SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function(){ GetContextuserRoles(); YourFunctionTwo(); }); });


0

I've had similar issues in the past. The trick has been that you need all of those things. For some reason sometimes the even main code like sp.js isn't loaded or registered in a site. I have no idea why. So you need to register it. But it might be and it might even be loaded already so you you need the executeOrDelayUntilScriptLoaded() in case it already ...


1

Need to check the Group settings. I think it will work.


1

Goto group setting of 'Team WhatIf' and select everyone option for Who can view the membership of the group? and then try your above code.


Top 50 recent answers are included