Questions tagged [sharepoint-jsom]

The JavaScript Object Model (JSOM) is a SharePoint Client Object Model that enables you to work with objects on the client side without having to deploy code on the server.

135 questions
0
votes
1 answer

How to get attachment document into form or download it to local from sharepoint List

I have a list in sharepoint 2013 and created an html form and script which will insert data and upload a document into this list. Now for second level, i want to fetch and only view all these saved data which i created. I used jsom to fetch all the…
0
votes
0 answers

Upload a file more than 2 mb to Document Library using Java script in Share point

I am uploading an excel file to a folder in Document library using Javascript in share point. IT is properly uploading if the excel size is less than 2 MB and if the excel size is more than 2 MB my code is going to the exception. Please help on how…
0
votes
1 answer

Not getting any project with JSOM PS.ProjectContext get_projects

In a Microsoft Project Server web app I am trying to get the list of projects using JSOM. I am following the code in these…
0
votes
1 answer

SharePoint JavaScript update choices field.set_choice does not exist

I am working with a SharePoint hosted add on that has a JavaScript component that I would like to use to update some of the choice values for one of the Site Columns I created. Everything I see indicates I should have access to a…
Duncan
  • 21
  • 4
0
votes
1 answer

Not able to query SharePoint from Nintex form custom JavaScript

I'm trying to query the SharePoint list using JSOM from Nintex custom javascript. My intention is to show the data in Nintex multiLine textbox. I can query data from SharePoint and display it in the Nintex edit form and not able to query from the…
0
votes
2 answers

How can I get value ID from ascx code behind

I have 3 pics above. I don't know how to declare variable in JavaScript to get value from ascx and code behind.
Sang Tran
  • 47
  • 1
  • 7
0
votes
2 answers

How to pass an argument to onQuerySucceeded function

I'm trying to query a SharePoint list using JSOM and in the onQuerySucceeded method I need to pass an argument to perform some dependent actions based on the value in the custom argument. I have tried to pass argument as given in the code below but…
0
votes
1 answer

Sharepoint: How to check with an array of item IDs whether every item exists in a list?

I have a dynamically generated array with IDs of different items and different lists. What I want: Return custom fields of every item in my array. The Problem: No Problem until an item is deleted. Then I'll get the following error: Item does not…
0
votes
1 answer

in JSOM page getting Page unresponsive

I have developed a jsom page where once we submit data it get save to an custom list(10 columns). When submitting minimum 50 items and can have maximum of 150 items will be save to the list. the problem is that I'm getting Page unresponsive alert…
0
votes
0 answers

How to run sharepoint content organizer with JSOM?

In SharePoint I added a shortcut-function to change the content types of selected elements in a list. This already works pretty well. But when I use it in the drop off library, I want the content organizer rule immediately executed - but nothing…
0
votes
1 answer

SharePoint Columns Don't Update After Successful JSOM update() call

I have a workflow that copies items from a standard Calendar list to a second standard Calendar list. But the copies contain less details about any given calendar item than the original. This works just fine except that the Start Time and End Time…
Scott Marcus
  • 64,069
  • 6
  • 49
  • 71
0
votes
1 answer

SharePoint Rest API across subsites

I am trying to make a single rest api call from a top level site to get results from multiple picture libraries on multiple subsites. Is this possible and if not, what is the best way of approaching this. I do have a rest api call to retrieve all…
Nemanja Sovic
  • 51
  • 1
  • 8
0
votes
1 answer

How to add status "active" or "Inactive" in sharepoint list items. By using sharepoint designer?

i have a two select dropdowns and first has get the items from sharepoint list and when i click the move button selected item moved to second dropdown and when i click the save button status of sharepoint list is dynamically changed.if item is…
0
votes
1 answer

How get Currency Symbole ftrom the LocalID in SharePoint Online using JSOM

How get Currency Symbole ftrom the LocalID in SharePoint Online using JSOM? I have a localeId which is set to 2057 as English (United Kingdom) and now I want to fetch its currency symbol uisng JSOM. Can someone point me some link for the same?
Sigar Dave
  • 2,598
  • 1
  • 20
  • 42
0
votes
1 answer

SP.ClientContext.get_current() return error: Cannot read property 'webServerRelativeUrl' of undefined

I have trouble solving the following issue. I am doing JSOM on html with the scripts located in the Document Library. Here is my code index.html
1 2 3
8 9