API for interacting with SharePoint from .NET, Silverlight, and JavaScript.

learn more… | top users | synonyms (1)

1
vote
0answers
75 views

Calling multiple times SaveBinaryDirect result in Socket Exception

I've been using Client-Side Object Model in C# for Sharepoint2010 for a few weeks, and I've tried uploading files with File.SaveBinaryDirect and by adding the file to the list and then calling ...
1
vote
2answers
3k views

How to use client object model (javascript) to get a custom user profile property?

In my sharepoint 2010 environment, I am using the client object model (ecma script/javascript) to display people information. In my user profile service in sharepoint, I have created some custom ...
0
votes
1answer
4k views

Getting 'ExecuteOrDelayUntilScriptLoaded' undefined error in aspx page

I created a test custom .aspx page in sharepoint 2010 and I want to get client object model (javascript) working on it, without loading the master page. However when I load the page, I get this ...
0
votes
1answer
190 views

access denied when getting personal site (JSOM)

I am trying to get my blog posts by using JSOM, following is my code to get personal_site/blog which generates "unexpected response data from server", when I debug the JavaScript it shows "Access ...
3
votes
2answers
548 views

Accessing files in SharePoint AutoHosted App 2013

I am creating an AutoHosted App in SP 2013 and trying to access the file under one folder of the remote Web (need to pick the file from current project directory location and pass that file to another ...
1
vote
2answers
911 views

How to apply CAML in SharePoint view

I'm using SharePoint client object model and trying to query specific view but not getting the correct method to do so. Here is my code, using SP = Microsoft.SharePoint.Client; using ...
2
votes
2answers
2k views

Why is list.GetItems pulling more fields than specified in my CamlQuery?

I am trying to pull back just specific columns in a list using the .NET client object model. (i.e. using Microsoft.SharePoint.Client;) This is the CamlQuery specifying just fields in the DefaultView ...
3
votes
2answers
1k views

SP 2010 - Client object model (javascript) - How to use get_listItemCollectionPosition for paging?

This is my code: When I call the function to get the items, it fails (doesn't go to the fail function, it goes into the success function but crashes when I try to get the position object), and I get ...
1
vote
0answers
332 views

Is it possible to programmatically add page items to Enterprise Wiki using CSOM or REST?

Like a lot of us I'm green when it comes to SharePoint development. I've been tasked with moving MediaWiki content over to a SharePoint Enterprise wiki. At this time I do not have access to the server ...
1
vote
1answer
519 views

How to get only the first x items starting at position y from a list, using CAML query?

In sharepoint 2010 client object model in javascript, I want to create a caml query, that can download items from a list. I have this part working, but I want to download only x items, not the whole ...
1
vote
1answer
1k views

How to get caml query to return list items created by the current user?

I want a caml query that only retrieves items created by the user currently logged in. I tried this specifier = "<Eq><FieldRef Name='AssignedTo'/><Value ...
0
votes
2answers
1k views

How to check checkboxes in caml query?

In SharePoint 2010 client object model (JavaScript), I am using this caml query to download list items. There is a column called 'Office' and in it, there are several check boxes (i.e. its a ...
2
votes
1answer
951 views

System.ServiceModel.ServiceActivationException “A relative URI cannot be created because the 'uriString' parameter represents an absolute”

The client object model code in my application is throwing the following exception. How to solve it?. System.ServiceModel.ServiceActivationException: The service '/_vti_bin/client.svc' cannot be ...
2
votes
1answer
113 views

Restrict access to list programmatically

I am updating a list MasterData programmatically using data which a user has entered in a small custom application. Application uses credentials entered by the user to login to Sharepoint, through ...
5
votes
1answer
693 views

Sharepoint Client context (client Object Model) cant load more than 500 records or more

is here any limitation about read the records from any lists in sharepoint? my codes are default that downloaded from msdn: string siteUrl = SharePointAddressURL; ClientContext ...
1
vote
0answers
91 views

Change web theme via client object model?

SPWeb.ApplyTheme() doesn't seem to exist in the client object model. Is there an equivalent? By the way, this is for SP2010.
2
votes
1answer
177 views

Sharepoint 2010 javascript client object model - downloading items and item attachments?

Is there a way, so that you can download the items from a list and all its item attachment files in one context call? Currently I am downloading all the items, then looping through each item, and ...
0
votes
1answer
332 views

The service '/_vti_bin/client.svc' does not exist

when i go to mysiteurl/_vti_bin/client.svc I am getting exception "The service '/_vti_bin/client.svc' does not exist". The same does not happen in my staging environment, it is available there.Because ...
0
votes
1answer
773 views

SharePoint 2013 App Part : Dynamically set values for the tool part panel controls on serverside

How can I dynamically fill a dropdown list in a Tool Part panel of a SharePoint 2013 app part? What I want to achieve: User checks a checkbox Dropdown appears The list items in this dropdown are ...
0
votes
1answer
370 views

executeQueryAsync in ecma client object model causes 404 error [closed]

I have a custom action where I will create a new item in the ecb menu for a document library and once clicked it will call a javascript function and there using ecma client object model I will ...
1
vote
3answers
120 views

Can I programatically move sites or content between 2007 and 2010?

Using the SharePoint Object Model on a SharePoint 2007 environment and the remote object model to talk to a SharePoint 2010 environment would it theoretically be possible to migrate sites or content ...
3
votes
2answers
2k views

SharePoint 2013 lazy load for .click() issue

With IE 10 and Chrome 26 on Win7 x64 (Host1) no issues are appearing, except Firefox 20. With IE IE 8 on Win7 x64 (Host2) and IE 10 on Windows Server 2012 x64 (Host3), there is the following issue I ...
0
votes
2answers
461 views

How to get display name from created by field in sharepoint client object model?

In my sharepoint javascript code, I am retrieving items from a list in my SP 2010 environment. I used a camel query to download specific fields. One of the fields was created by (person who created ...
1
vote
0answers
43 views

How to create object of type SP.ListItemFormUpdateValue

How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side? If this is not posible, how can i read a value in a ...
1
vote
2answers
381 views

Item ID of current row

I am working on a script that needs to pull the SharePoint list item ID from the current row. I have a checkbox field in a multi-item form webpart that, when checked, needs to update the item without ...
3
votes
3answers
2k views

Prevent/override standard Modal Dialog close button(X) from closing

I want to validate custom modal dialog form and if its not ok, prevent form from closing. For this purpose, I attached to X-close-dialog-button. Problem is to prevent it's default behavior. function ...
1
vote
1answer
671 views

Getting user email from a List Item column using Javascript

I am creating a Hosted app using NAPA on Sharepoint 2013 (Office365). I need to retrive a user from a list column and get the user's email. SP.List.getItems with a query returns a listEnumerator ...
1
vote
0answers
286 views

how to update properties of item in doc set with client object model

I've been able to create doc sets and upload files to it with the client object model. I am having difficulty updating the properties of the files in the doc sets. Here is what I've tried: public ...
2
votes
1answer
124 views

MOSS 2007: Multi-layer flyout menus on the global navigation

I've reset the MaximumDynamicDisplayLevels to 30. My goal is to create a global navigation menu that leads to other SharePoint sites/external links. Each tab on the navigation is the top category with ...
1
vote
1answer
557 views

How to open file in adobe reader using command line without checkout from Javascript?

I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
1
vote
1answer
222 views

Javascript IIFE and SharePoint Client Object Model

I'm having a problem with my javascript code that I am sure is to do with scope, but I can't figure out where I'm going wrong. I'm trying to write a method that will allow me to retrieve items in a ...
1
vote
2answers
415 views

Control JavaScript with Ribbon Button

my aim is to add a Ribbon Button which is opening a printing dialog for a selected file in a document library. I already added the Button with SP Designer and linked it with a html file which is ...
1
vote
2answers
872 views

Connect to SharePoint Online using the Client Object Model from .NET 3.5

We have an on premise SharePoint 2010 farm, and a SharePoint Online 2013 farm. We would like to be able to have a solution running on the on premise farm that will talk to the online farm. Since the ...
0
votes
1answer
243 views

Date from list being displayed wrong on graph created programmatically

I have a list, where one column is of type datetime and another a numeric value. The records are being entered correctly, in the form: ID Col01 Col02 01 05/02/2013 6 02 05/03/2013 9 ...
1
vote
2answers
53 views

Track users opening files from the farm?

Our internal auditors have made a request to produce a regular report that shows when users access certain files. With this in mind I was wondering - is there a way in the object model or otherwise ...
0
votes
2answers
285 views

Programatically update profile field(s)

I have a requirement to update user profile fields. I'm able to query the fields, of course, using the CSOM API in Javascript. But, as per here - ...
1
vote
1answer
625 views

Client Object Model - Select distinct

I am using ClientObjectModel (C#) to retreive data from a custom list, which is structured like this: What i need is some kind of "select distinct" which retreives only the categories, without ...
2
votes
2answers
829 views

Allow users to see other users in sharepoint groups with CSOM

How can I allow users to view the users in a sharepoint group? Currently if I try to query users in the site groups using the client object model I get an unauthorized exception. For example, if I am ...
1
vote
0answers
100 views

Will content type names change with locale? (Sharepoint 2010, client object model)

I'm making a content type/id hashmap. The relevant part of the code is something like this (js): contentMap[content.get_name()] = content.get_id().toString(); I'm worried that the name will change ...
0
votes
4answers
283 views

Multiple Webparts with same JavaScript on one Site (another Problem)

I rebuild the site (site before). I have on the site two or more Webparts. These CEWP are including the same JavaScript and this the JavaScript is displaying a table via: ...
5
votes
2answers
857 views

how to set list alert using javascript in sharepoint 2010?

I need to set a list alert for current (logged in) user using javascript. var currentcontext = new SP.ClientContext.get_current(); var currentweb = currentcontext.get_web(); ...
1
vote
2answers
153 views

CAML Query works in my VS2010U, but not on anybody else's computer

I have a list with records uniquely identified by project numbers. This is column 5 - Col05 in my list. It works fine when I run the code, and I am getting the expected record. I can also read the ...
3
votes
1answer
235 views

Retrieve property bag for sub sites using JSOM

I need to go through all sites belonging a site collection to validate a property bag of them. following is my code. the problem is the second call to get the property uses only one of the sites. I ...
0
votes
2answers
507 views

Get current language via Client Object Model

I need to get the current display language of a web via Client Object Model (C#) from a provider-hosted App. The app runs inside a Client Web Part (IFrame). I am aware of this solution but think it is ...
0
votes
2answers
257 views

Multiple Webparts with the same Javascript

I have a site with multiple Webparts. Some Webparts are linking on the same .html file. The HTML file reads data from a list and displays it in a table by using javascript. My problem is that there ...
1
vote
2answers
192 views

Advice on starting development for SharePoint in C#

I'm about to start development of client-side application (C# using .NET 4.0) that connects to SharePoint. Mainly to download/upload documents. I've found out that there are several options: using ...
1
vote
0answers
847 views

How to get a client context for App in provider-hosted Apps?

I use a provider hosted Apps, so need to work with an App Web and Lists. Could anybody provide a code snippet to get ClientContext() of the App? Can I do something like this? Uri appWeb = new ...
0
votes
2answers
1k views

Delete Item in Document Libarary using Client Object Model?

I have custom Database, this Database having SharePoint Item URL like(http://site.com/Shared Documents/a.pdf), so my challenge to remove this file from sharepoint Library using Client Object Model.
0
votes
1answer
64 views

Conditional Formatting very slow

i am using SharePoint 2010. I built a webpart which is displaying elements from another list on the same page. This works fine and fast but when i put in the conditional formatting the loading process ...
7
votes
1answer
998 views

How to get WebPart on current page by name/ID with javascript?

I have a page with some webparts on it, I want to get specific one (by name or ID) using client javascript. I try this code var ctx=SP.ClientContext.get_current(); var web = ctx.get_web(); var site ...