Linked Questions

4
votes
2answers
3k views

AJAX Pass variable to successhandler

Considering this sample code, how can it be changed so that it makes the 'something' variable available in the succeshandler function? var url = _spPageContextInfo.webAbsoluteUrl+"/_api/web/lists"; ...
1
vote
2answers
367 views

CSOM: How to know if a Web has completed its creation?

I have a service that creates a Sharepoint Online site using CSOM. context.Web.Webs.Add(webCreationInformation); context.ExecuteQuery(); This site is created using a defined Template stored in the ...
1
vote
2answers
334 views

Looping jsom getItems

I want to make a function to get data from SP list thru jsom, when i run the function with multiple items I get the error, with only one item it does work correct. Error: Uncaught Error: The ...
0
votes
2answers
111 views

Setting property bag values only set sporadic

We have created site design/script that trigger a function app. The function app set’s some property bag values: var adminCtx = ClientContextExtension.GetAppContext("https://xxx-admin.sharepoint.com",...
0
votes
2answers
392 views

Sequential dropdown lists

I am trying to make a simple double drop down list. I have the basic structure down I believe, but I am stuck on making the javascript work correctly. I want the double drop downs to look as such: ...
3
votes
1answer
244 views

SP2013 - Failed to call, back to back executeQueryAsync() functions

This is exactly what I want to accomplish, given below are the steps I'm performing. Update sub task status based on subTaskId (SP Task List), using executeQueryAsync() Get all sub tasks based on ...
1
vote
1answer
205 views

rest api to insert value in title field of list

I want to insert "100" value in my sharepoint list title field. I tried jsom but it not even giving alert. Below is the code. What change I need to make in JSOM code or can someone help with rest api. ...
1
vote
1answer
1k views

Retrieve Attachment URL and Name from Custom List in SharePoint 2013 using CSOM

I have a query below is my script : <div style="text-align: left;"> <table id = "customListData" style="margin-top:-70px;" width="100%" align="right" cellspacing="0"> <...
1
vote
1answer
73 views

Error updating List Items

I have found this code to perform batch update function updateListItems() { var itemArray = []; var clientContext = SP.ClientContext.get_current(); var oList = clientContext.get_web()....
1
vote
1answer
1k views

SharePoint JSOM and Promises - copying items from one list to another

I need to use JSOM to copy a set of items (found from a CAML query) from one SharePoint list to another. I'm pretty experienced doing this type of thing on the server side, but relatively new with it ...
0
votes
1answer
261 views

find out what item id failed executeQueryAsync item creation

How can i find what item failed executeQueryAsync add item method ? this is my code : var itemArray = []; var siteUrl = "http://MySite/MM/cm"; var clientContext = SP.ClientContext.get_current(); ...
0
votes
1answer
45 views

Adding Data to Rest API Request which will not be processed but sent back to client afterwards

I am currently working on a method to resolve multiple users in a user picker field in my sharepoint app. For this I need the elementId which is supported by the OnValueChangedClientScript function ...
0
votes
1answer
95 views

Using JSOM to get information from host web error "The collection has not been initialized"

I'm using the following code part to access the host web from a sharepoint add-in : var ctx = SP.ClientContext.get_current(); var factory = new SP.ProxyWebRequestExecutorFactory(this.appWebUrl); ctx....
0
votes
1answer
139 views

Sequential ExecuteQueryAsync?

How do you properly code / process 2 ExecuteQueryAsync, with the 2nd one reliant on the items of the 1st one. Basically, I have 2 Lists. 1st List is Main List, and 2nd one is like an extension. 2nd ...
4
votes
0answers
827 views

Sharepoint, Chart.JS and multiple charts not working

I'm relatively new to Sharepoint and am having a rather annoying issue. I am using Sharepoint 2013 and I am creating 3 donut charts all to be displayed on the same page, using chart.js. I have three ...

15 30 50 per page