0
votes
2answers
49 views

Javascript always failing

I am busy writing some javascript to take a list of selected documents and do some processing on a list with each document in Office365. I am getting a strange error when the code tries to load the ...
0
votes
0answers
18 views

Getting the version history of a list item

I am creating a content web part and one the list items is used with versioning. I want to show all the versioning on the page. Is there anyway to do this? maybe using CSOM or something
0
votes
2answers
60 views

SP 2010 CSOM Javascript: serverRelativeUrl fails

I have a custom html and javascript file housed within a document library of a subsite: http://teamsite/project/testing%20site/shared%20documents/test.html and ...
0
votes
1answer
47 views

Pure clientside webpart for Office365

I want to build a pure clientside (angular) webpart for my own environment. I want to have as small of a footprint as possible (So please no app domain or sandboxed solution). It's necessairy this ...
1
vote
1answer
85 views

Version Conflict issue with JavaScript Client Object Model code

I'm running into an issue where I'm trying to modify a metadata field on a document within a document library. My code, will check out the document, update the metadata field and then check in the ...
2
votes
1answer
54 views

Check if a document set exists

I'm trying to determine whether a document set exists - if it doesn't I'll send it off to another function to create but I'm not getting the correct value back from my query. I think it has to do ...
2
votes
1answer
32 views

Accepted way of checking for SharePoint CSOM in JavaScript?

What I'm trying to do is build a dual purpose JavaScript that might run inside or outside of SharePoint, so I need something like this: if(SharePoint CSOM Exists) { //Do a bunch of stuff involving ...
0
votes
1answer
62 views

Based on URL how to set Global navigation nodes (CSOM) node as active - javascript

I want to use the same navigation everywhere (mysite, teamsites ..) So I'm fetching the (managed navigation) global navigation by csom in the masterpage. The global navigation is only going to show ...
0
votes
1answer
75 views

Identify if a Library item is a folder or not in CSOM

I have Library on which I have created a ribbon button. On click of the button I am trying to identify if the selected item is a folder or a file. below if the code snippet that I am using: var ...
0
votes
2answers
400 views

Undefined SP.ClientContext

I always get undefined on my SP.ClientContext.get_current() I have tried with this code: SP.SOD.executeFunc('sp.js','SP.ClientContext',runthiscode); function runthiscode(){ ...
0
votes
2answers
415 views

REST Adding New List Item

I am currently using office 365 and lots of REST queries to display data. However I am now creating my own forms using bootstrap and JQuery. However, how do I use REST to add the data to the list. ...
1
vote
1answer
172 views

groups.getByName(groupname) is undefined

I have copied some snippets of code from here to test if a user belongs to a certain group, I am using Sharepoint 2010, however I am getting an method is undefined error. I am making sure that sp.js ...
0
votes
2answers
193 views

How to get the count of list items using javascript?

I want to count the list items using javascript
0
votes
1answer
568 views

CSOM Javascript - when executing query on multiple lists getting error - SharePoint 2010

Is here any SharePoint expert, who can help me find out, why I am getting error on lists queries? I am trying to fetch data from multiple list asynchronously, but I am getting following error: The ...
0
votes
1answer
232 views

Create Next and Previous Paging Using Sharepoint List and SpServices

can anyone help me in Creating Next and Previous Paging for SharePoint List Using Sp-services With Client Side Template Binding . Below is the Code Which I was Using. $().SPServices({ operation: ...
0
votes
1answer
53 views

Unable to system.string to system. guid - CSOM

I have a picture slideshow webpart which displays images from a particular library with a particular view. I want to change the webpart property - view using jquery. I have used CSOM to get the ...
2
votes
2answers
658 views

Why does “sp.js” load only when I am editing a web part page?

I have created a page and would like to use some functions that require sp.js to be loaded, but it never seems to load unless I am editid the page (Site Actions -> Edit Page). Trying to find the ...
1
vote
1answer
254 views

Alternative to CSOM ListItem.get_item

The only way I know to load a sharepoint list via Javascript is to load it and on the current list item: var value = currentItem.get_item(columnTitle); I want to be able to load an item and on the ...
0
votes
0answers
53 views

JSRender modify dispform.aspx button

I want to modify the button, the display text and the url link. How can I do that with JS-Link?
0
votes
1answer
53 views

Using results of executeQueryAsync with JSGRID

I understand I can retrieve the list data using context.load(data) and later firing context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, ...
0
votes
0answers
58 views

User or Group field SharePoint 2013

I have a field in a list that is a group or user field with multiple user choice. Now i want to check if there is 3 users in that field, i want to check if the current logged in user is equal to the ...
0
votes
0answers
18 views

Hide Elements on topnavigation

I have a metadata navigation dropdown in SP 2013, How can I hide a specific element with a specific title?
0
votes
0answers
158 views

SharePoint csom set_item limitation

Is there a limit on set_item with csom ? If i add a third: olistItem.set_item("Body", "test"); It doesn't work var theList = clientContext.get_web().get_lists().getByTitle('userData'); ...
2
votes
1answer
283 views

Rest Query Managed Metadata Filter

I am currently writing a JSON query for office 365 (sharepoint 2013) where the filter is suppose to filter depending on values returned from a managed metadata field I am trying to filter based on ...
2
votes
2answers
459 views

Rest Javascript Query Managed Metadata field

I am query a list via rest results I retrieve fine in Office 365 (sharepoint 2013). I have two fields of which one is a managed metadata fields. I am looping through the results retrieved but when ...
1
vote
1answer
659 views

Sharepoint 2013 Content Search vs. Javascript CSOM

I did what this page teaches: http://code.msdn.microsoft.com/SharePoint-2013-Querying-a629b53b It works, but the thing is that I used the same KQL query in a content search webpart and I have ...
3
votes
2answers
856 views

SharePoint 2013 get user groups by CSOM

I wrote some code to get the current user groups by CSOM. function getCurrentUser() { this.clientContext = new SP.ClientContext.get_current(); this.oWeb = clientContext.get_web(); ...
0
votes
2answers
644 views

How to insert record to sharepoint multi choice field via CSOM

I am trying to insert a Multichoice (checkbox) field to sharepoint via the SP namespace in javascript. Updatnig single choice is simple. For Multichoice I have tried: var itemCreateInfo = new ...
0
votes
1answer
156 views

collection has not been initialized after dialog modal closes

I have two JS scripts on my SharePoint 2010 page, one in the master page, one in a forms web part (I've attempted this with a CEWP as well). Both are in unique name spaces (My.Tabs and ...
1
vote
0answers
170 views

Error Setting Ratings using SharePoint Client Object Model

We are attempting to use the example located on this: Site We are receiving the following error: "The assembly Microsoft.SharePoint.Portal.Proxy, Version=15.0.0.0, Culture=neutral, ...
3
votes
2answers
546 views

getting Regional settings in Javascript from CSOM

I am creating a custom data entry app in sharepoint using the CSOM. I need to update the default value of a datetime field, I can get the default value but the datetime is in UTC Format. I need to ...
0
votes
1answer
3k views

getting list using JavaScript, error: Unable to get property 'apply' of undefined or null reference

In the context of a page in SharePoint 2013, I am trying to get items from a list using below code but when the query executes I am getting this error: SCRIPT5007: Unable to get property 'apply' of ...
1
vote
1answer
70 views

Caml query after modified choices

I have a column with an internal name of: PublicY with 2 choices: Yes/No, the query works but if I change the choice name to Ja/Nej the code will not query the results, why? I have tried to change the ...
0
votes
0answers
47 views

Dynamically adding CUI.Controls.SplitButton?

I managed to dynamically add Ribbon to Custom Edit Form, as described here. Now I need to replace Button with SplitButton element with Menu in it. Is there any example about it? I really don't wont to ...
0
votes
0answers
60 views

passing information from Sharepoint to Immersive Sharepoint App

I have created an custom add entry app to sharepoint. It all works however currently the list it works on is hard coded. I want a way to pass the list I want to add an entry to to the application. I ...
1
vote
2answers
144 views

Jquery and csom problem

Hi im having some code like this: var News = new Array(); jQuery(document).ready(function () { ExecuteOrDelayUntilScriptLoaded(initialize, "sp.js"); some code here... function setUpList(){ ...
2
votes
1answer
53 views

Retrieve items from content type

I have the following setup: Root Subsite1 Subsite2 list1 list2 content type: News content type: News How can I retrieve the ...
2
votes
3answers
2k views

using CSOM to retrieve fields in a list in a view

I am trying to use the CSOM to retrieve all the displayed fields in a particular view. I require to know the field type and field internal name. I can not do: var list = ...
2
votes
2answers
332 views

SharePoint 2013 Organization Chart [closed]

im in need of help here. I have to render this code from a sharepoint list instead of this json string. How can i do that? Heres the link to the chart: http://librerias.logicas.org/lib_gg_orgchart. ...
1
vote
1answer
675 views

Making Presaveaction() wait for SP.UI.ModalDialog response

I am using the Presaveaction() to perform pre-new/edit form validation. Once all fields have been validated successfully I would like to offer my users the ability to 'Save and Exit' or 'Save and ...
1
vote
3answers
2k views

Using CSOM to get list item count for multiple lists

I am trying to create a function which should loop through all lists on current web and display their current item count. My code so far: <!-- language: lang-js --> ZN.updateDocumentCount = ...
0
votes
1answer
237 views

Jquery show loading progress [closed]

Good day, I have a page with several javascript pages that get loaded. How can I check that all the JS files have been loaded? I tried the below with just alert boxes. $(onPageLoad); function ...
4
votes
1answer
244 views

SP.UI.Status anonymously inaccessible

Using Office 365 (SharePoint Online) I have stumbled into an annoying thing. Some parts of the JavaScript CSOM does not seem to be accessible when your browse the site anonymously. If Firstly I tried ...
3
votes
2answers
441 views

Creating a SharePoint Wiki Page via JavaScript and REST or CSOM

I'm fairly new to developing SharePoint 2013 Apps, and I was tasked to customize the Create New Wiki Page for a Site. The user has to type in the Title, I do some processing, and then when everything ...
0
votes
2answers
171 views

Access DVWP z:row with Javascript [duplicate]

I need to loop through the z:row of a Data View Web Part on the client using JavaScript to push to an array and then use the JavaScript CSOM to create a new list item in an existing list. var ...
0
votes
1answer
429 views

CAML Join for retrieving FieldLeafRef

I'va a custom list which contains a lookup field to a document library. Now I need to retrieve all items from this list with the corresponding file name from the document library with Javascript CSOM. ...
1
vote
1answer
5k views

The property or Field not initialized exception even I request explicitly

I'm using the following code to get the user permissions on a list item in javascript csom context = SP.ClientContext.get_current(); var field = ...
0
votes
2answers
125 views

Can't read Start or End Times with Client Object Model from Calendar in SP 2013

I have some experience using the SharePoint Client Object Model to retrieve text fields and URLs/images from lists in SP 2013. I'm currently trying to do something similar with a calendar. I have been ...
2
votes
2answers
1k views

Modify Attributes and Properties Using JSOM(CSOM)

Before I describe the problem, I want to clarify that what I'm looking for is A generic way of updating various attributes/properties using JSOM. I'm using an Office 365 dev account testing a ...
2
votes
0answers
319 views

Install an app from the appCatalog using javascript CSOM

I'm trying to install an app in a site from the AppCatalog using the javascript CSOM I get the apps from the App Catalog using req.apps = SP.AppCatalog.getAppInstances(clientContext, oWebsite); I ...