Linked Questions

6
votes
3answers
6k views

Query multiple lists using javascript/CSOM

I'm about to query multiple lists using JavaScript (JSOM, SharePoint 2010). It's working when querying one list in a time, but that's annoying when I'm having lots of lists. Working example: ...
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"; ...
5
votes
2answers
3k views

How can I know REST API request done?

I use in my application a request REST API which works asynchronous. How I can do to know the request is done?
4
votes
2answers
2k views

executeQueryAsync does not run success or failure statements

Whenever I call executeQuereyAsync after an update(), it does not run either the success or failure methods. Elsewhere in my code, I call it after load() and it works fine. So this works fine in my ...
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 ...
1
vote
3answers
2k views

get modified by (editor) when getting list items using CSOM/JSOM through JavaScript

I am able to get items from a list using CSOM/JSOM using JavaScript and it seems to pull in the Created By (Author) value but it does not seem to pull the Modified By (Editor) value. How can I get ...
0
votes
3answers
2k views

jQuery - Detect value change on page and call routine

On an EditForm.aspx page I have a routine to hide/unhide a field based on the change of another field. It works fine on pageload, but I want to fire the change on the page itself if the user makes a ...
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"> <...
2
votes
3answers
876 views

Include callback functions directly in executeQueryAsync without delegates

I am tryting to create module pattern with ExecuteQueryAsync like this: UsersMngt = (function () { getUserIdByEmail = function(email){ var clientContext = new SP.ClientContext....
4
votes
0answers
825 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 ...
0
votes
1answer
260 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
2answers
391 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: ...
1
vote
2answers
325 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 ...
1
vote
2answers
363 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 ...
3
votes
1answer
243 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 ...

15 30 50 per page