API for interacting with SharePoint from .NET, Silverlight, and JavaScript.
0
votes
2answers
22 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
1answer
19 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
34 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
12 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
40 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 ...
2
votes
2answers
42 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 ...
0
votes
1answer
25 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 ...
0
votes
0answers
20 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 ...
1
vote
0answers
24 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
44 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 ...
0
votes
1answer
27 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 ...
0
votes
2answers
56 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
61 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
33 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
32 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
1answer
46 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
37 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
1answer
40 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
32 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
3answers
38 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:
...
4
votes
2answers
126 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
65 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 ...
1
vote
0answers
30 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
1answer
62 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
68 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
75 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
67 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
1answer
34 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
48 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 ...
2
votes
0answers
79 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 ...
0
votes
0answers
10 views
Why does SharePoint 2010 convert “qty01” to %5Fx0071%5Fty01
I have been using the SharePoint 2010 client object model to create a list in sharepoint. When it gets to adding a field called "qty01" it replaces it with "%5Fx0071%5Fty01". Is qty01 reserved or ...
0
votes
1answer
157 views
SharePoint Client-Object-Model - Return List Item Counts by Created Month
Looking to get monthly totals of items from a list using the SharePoint COM/SP Services. My intention is to pass this data to a D3 chart.
2
votes
2answers
56 views
Get list properties via JCOM
How do I get list properties like BaseTemplate, ItemCount, ListItemDeletedDate etc. via Javascript Client Object Model for SharePoint 2013?
0
votes
0answers
56 views
List of Site Features using Client Object model - SharePoint 2010
I am working on a Windows Forms application to list the features available for a SharePoint site. But I find no way, to retrieve the list of Site Features using Client Object Model.
...
3
votes
2answers
252 views
Programmatically add item to sharepoint list from window application
How to add item to SharePoint list from window application using claim based authentication ?
it gives 401 forbidden error. user is authenticated from ADFS server.
0
votes
0answers
35 views
How to Enable intellisense for ecmascript cliennt object model in sharepoint 2010
I want to enable intellisense for ecmascript object model in sharepoint 2010.
Iam able to get some properties but not getting all the objects and properties.
like for below code iam only able to get ...
1
vote
1answer
69 views
Is it possible to check if a document has unique permissions using SP2010 Client Object Model
I have a 2010 site that has many documents in many different folders. I believe a number of them have broken permission inheritence. Is there a way i can code a C# console app to utilise client object ...
0
votes
0answers
12 views
How to fetch sharepoint “My Site” link in silverlight using client object model
I want to access Sharepoint "My Site" link in my silverlight application.
Is there any way to fetch "My Site" link using client object model in silverlight.
Please help and Thanks in Advance.
2
votes
1answer
451 views
Javascript get SharePoint List items, enumerate, and locate and pin each item on Bing Map
The map is rendering and debugging in IEf12 does not show any error with loading the list. I am using a CEWP referencing this file - SharePoint Online (Office 365). What's wrong with this code?
...
1
vote
2answers
103 views
SiteMap using ECMA script Client object model
Iam trying to create a sitemap for sharepoint sites to get a hierarchial structure of all the subsites within a site. but Iam only able to get sites of that site
eg: -Lets say i have created below ...
0
votes
1answer
20 views
SP2013 App icon not rendered, only App link is displayed + how we can set the sliding transparent hover text over App icon?
I am facing an App Icon related issue.
I am creating SharePoint Hosted App which I am deploying to SP 2013 Developer site.
By default any app will have the AppIcon set under Images folder. Also it is ...
0
votes
1answer
120 views
App issue with SharePoint 2013 Developer Site
In SharePoint 2013 Developer Site:
I am installing an app to my site and it worked fine with default stuff. I added some custom .js file in this app which will set the master page of site coll and ...
1
vote
1answer
296 views
How to modify user profile properties using javascript in SharePoint 2013 (Online)?
I need to modify user profile properties using javascript (REST or CSOM). How can I do that?
I don't see any methods in MSDN documentation about modifying profile properties without server code.
...
1
vote
2answers
72 views
Dispose in Client Object Model
Should objects be disposed when using the client object model? If so, which ones? There seems to be plenty of information on this for server side, but nothing from Microsoft specifically about ...
0
votes
0answers
124 views
Binding ListItem to DataView web part or GridView using Client Object Model (Jquery)
In SharePoint 2010 I need to get list items from a list and bind it to either DataView web part or SPGridView control on page. I need to do this using client object model (jquery). I am familiar with ...
3
votes
1answer
79 views
how to load a folder given just a ServerRelativeUrl using Microsoft.SharePoint.Client
In my application I have a url of a folder as retrieved by folder.ServerRelativeUrl() eg. /consulting/TeamSiteTemplate/Documents/
Now I want to get a list of folders inside this folder. I use this ...
0
votes
0answers
56 views
CSOM expand user / people field
I have a "Contact" person field and want to access the expanded properties of the field, name, account and work email.
With REST, you can use $expand and project fields like this:
...
1
vote
2answers
222 views
Error while pdating Master Page through JavaScript Client Object Model using SP 2013 App
I have created a Site Collection in SharePoint 2013 online.
In this site I am trying to update Master Page through JavaScript Client Object Model.
My JQuery scripts are able to change the Site Master ...
1
vote
1answer
64 views
Sharepoint Online - How do I retrieve document's social tagging information
Is there any way I can retrieve documents' social tags and notes using Client Object Model? I'm on the client side so I don't have access to Server Objects. I've been searching all around but found ...
1
vote
1answer
311 views
Setting Search Center URL in SharePoint 2013 using Javascript CSOM
In SharePoint 2013, I am trying to access Search object through JavaScript CSOM.
I want to know the object which can give me the access to Search Settings under Site Settings. I tried looking under ...


