dimanche 8 février 2015

Error on ClientContext



When i try to get sub sites of specific sub site



var clientContext = SP.ClientContext('/groupcompanies');
var webs = clientContext.get_web().get_webs();


i get this error undefined is not a function >>>>> sp.js


while



var clientContext = SP.ClientContext.get_current();


works fine theres always a problem when i define url for ClientContext








0 commentaires:

Enregistrer un commentaire