Skip to main content
added 711 characters in body
Source Link
Jaime
  • 401
  • 4
  • 14

Nevermind, changed

var hostWebContext = new SP.ClientContext(PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))

for

var hostWebContext = new SP.AppContextSite(context, PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))

and changed this

hostWebContext.load(asyncObjects.sectionGroup);
hostWebContext.load(asyncObjects.sectionList);
SP.UI.Notify.removeNotification(notification);
notification = SP.UI.Notify.addNotification('Creando grupo de usuarios y biblioteca de documentos...', true);
hostWebContext.executeQueryAsync(onCreateGroupAndListSuccess, onError);

for this

context.load(asyncObjects.sectionGroup);
context.load(asyncObjects.sectionList);
SP.UI.Notify.removeNotification(notification);
notification = SP.UI.Notify.addNotification('Creando grupo de usuarios y biblioteca de documentos...', true);
context.executeQueryAsync(onCreateGroupAndListSuccess, onError);

Nevermind, changed

var hostWebContext = new SP.ClientContext(PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))

for

var hostWebContext = new SP.AppContextSite(context, PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))

Nevermind, changed

var hostWebContext = new SP.ClientContext(PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))

for

var hostWebContext = new SP.AppContextSite(context, PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))

and changed this

hostWebContext.load(asyncObjects.sectionGroup);
hostWebContext.load(asyncObjects.sectionList);
SP.UI.Notify.removeNotification(notification);
notification = SP.UI.Notify.addNotification('Creando grupo de usuarios y biblioteca de documentos...', true);
hostWebContext.executeQueryAsync(onCreateGroupAndListSuccess, onError);

for this

context.load(asyncObjects.sectionGroup);
context.load(asyncObjects.sectionList);
SP.UI.Notify.removeNotification(notification);
notification = SP.UI.Notify.addNotification('Creando grupo de usuarios y biblioteca de documentos...', true);
context.executeQueryAsync(onCreateGroupAndListSuccess, onError);
Source Link
Jaime
  • 401
  • 4
  • 14

Nevermind, changed

var hostWebContext = new SP.ClientContext(PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))

for

var hostWebContext = new SP.AppContextSite(context, PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl'))