API for interacting with SharePoint from .NET, Silverlight, and JavaScript.
3
votes
1answer
77 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 ...
3
votes
1answer
78 views
Copy folder from Source-Library and paste it to Target-Library?
I need to copy a folder from a SharePoint 2010 library and paste this folder into another library e.g. the folder: "myTestFolder" from mysharepoint/sourcelibrary to mysharepoint/targetlibrary
...
3
votes
1answer
592 views
Permissions error in IE 8 but not Firefox 6.0.2?
I am using the Javascript Client Object model to access some information from a list. Below is the code I am using:
function getDeptInfo(id) {
//var value = ...
2
votes
1answer
466 views
Get TaxonomySession TermStore TermSet Term from Sharepoint 2010 Server using Microsoft.Sharepoint.Client.Taxonomy.dll
I'm coding a c++/c# client-application to communicate with a Sharepoint 2010 site which uses Taxonomy
I have downloaded and installed Microsoft.Sharepoint.Client.Taxonomy.dll from:
...
2
votes
1answer
159 views
How to parse a SharePoint URL to get CSOM objects?
Let's say the only input I have from the user is the full URL to a folder in a Document Library called "Public Documents":
http://intranet.contoso.com/SubSite/PublicDocuments/Folder/SubFolder/
Using ...
1
vote
1answer
38 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
62 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
442 views
Check Out, Update, then Check In a File in SharePoint Client Object Model
I would like to programatically update a SharePoint file by checkout/checkin.
I have written code that looks like it should do what I want it to do:
static void ...
1
vote
1answer
97 views
Windows 8 App using COM dlls of Sharepoint gives error “Cannot resolve Assembly or Windows Metadata file 'System.Web.Services.dll'”?
I have created a sample app using Windows 8 C# XAML to get site info of SharePoint 2010 using COM Dlls. I have added reference of:
C:\Program Files\Common Files\microsoft shared\SharePoint ...
1
vote
1answer
388 views
Unable to get correct element on a sharepoint page using document.getelementbyid('<%textboxID.ClientID%>')
I have a sharepoint website which has multiple instances of the same visual webpart. On button click I am trying to get a textbox present in the usercontrol of the webpart using ...
1
vote
1answer
326 views
Create Publishing Page using Client Object Model (Jquery)
I am trying to create a publishing page (site page) using SharePoint 2010, Jquery, Client Object Model.
Any reference or help will be appreciated.
Let me know if any more details are required.
1
vote
1answer
66 views
Access a Sharepoint site from event handler
my problem is that I want to pop up a status bar in SP2010 after a File was uploaded via a single uploadform to a List.
Found this in the net: ...
1
vote
1answer
807 views
How to see if current user exists in people and groups field, using ecma/client-object-model
I have a list which has two fields. (Title,EditPermission). The EditPermission is "people and group" field. I can use the following code to compare the current user with the spuser in that field
...
1
vote
1answer
192 views
Given a URL, can I find if the site exists using the client object model?
I am looking for a "cheap" option to find out if a site exists, given a URL.
I have no control over the server environment, so I am not able to add web services or code to it.
Is there a way to find ...
1
vote
1answer
426 views
set or update multiple values cascading lookup field using client object model
I'm struggling since a couple of weeks with setting a multiple values cascading lookup field using a client object model,
I could set the first value but then It show me an error of invalid lookup ...
1
vote
1answer
378 views
Sharepoint 2010 Client OM - How to get the Last approved document version?
I am trying to use sharepoint foundation 2010 as file store for a website. Every document update must go thru an approval cycle and finally gets to a approved status to show up on the website for end ...
1
vote
1answer
1k views
Missing fields from SiteUserInfoList user ListItems
I'm using the SharePoint 2010 Client Object Model to retrieve all the users from a SharePoint instance, via Web.SiteUserInfoList:
var query = new CamlQuery { ViewXml = "<Query/>" };
var ...
0
votes
1answer
23 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
1answer
26 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
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 - ...
0
votes
1answer
60 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
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
145 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.
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
117 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 ...
0
votes
1answer
28 views
SpcalenderView Javascript on Mouse hower
I have one issue with spcalendarview. I just wanted to show spcalender item to the contain editor web part from the link here
but i wanted to my custom page into the contain editor web part
so how to ...
0
votes
1answer
87 views
Getting Filtered results by Date column from a list with BCS and SharePoint 2010 JavaScript Client Object Model
I'm trying to get the filtered results by a column type DateTime from a list filled with BCS using JavaScript.
I've tried everything to get those results with query like:
"<Where>" +
...
0
votes
1answer
166 views
Get all items with specific fields without query - SharePoint Client Object Model
Is it possible to get all items from a single list (getting specific fields) without using a CamlQuery? If I try to use context.Load(oList, ...), I can't use the Include method as the List class ...
0
votes
1answer
231 views
Import bulk data (over 5000 List Items) into SharePoint
I have an Microsoft Office 2010 AddIn which imports Data into SharePoint. The tool creates a Dictionary with over 5000 Values. Every Value is a C#-Class with Data and represents a SharePoint List ...
0
votes
1answer
70 views
where i can find trace for item.systemupdate()
I am working on a project which was initially developed by someone else. few of my list items are getting updated but i am not getting anything in version history. I believe that some schedule job is ...
0
votes
1answer
58 views
Performance of LoadQuery degraded (almost) linearly along with the number of documents in library
The following piece of code creates an empty document in a library and get back all fields for the document (to set them later, and real document text will be loaded in a separate process):
string ...
0
votes
1answer
393 views
Create a folder structure in sharepoint via Client Object Model
Here's the class of my folder:
class MyFolder
{
private List<MyFolder> _folders;
public List<MyFolder> Folders
{
get
{
if (_folders == null)
...
0
votes
1answer
60 views
Long running Silverlight app losing connectivity via Client Object Model after a while?
I have a Silverlight 5 app hosted in SharePoint Online, which asks the users 72 questions and right at the end writes their answers to some SharePoint lists.
When I trialled it with 8 users, the ...
0
votes
1answer
124 views
How to create a new document from a Document Template using Client Object Model
I require to create a programatically create a new document using the Document Template URL of the document Library and this requires to be done using the Client Object Model. I also require to do ...
0
votes
1answer
174 views
How can I set empty value to TaxonomyField of Microsoft.SharePoint.Client.Taxonomy?
I have a ListItem with TaxonomyField which have some value in it (some term of course). This TaxonomyField is single value only. So now I want to set it to empty, just as it was from the beginning but ...
0
votes
1answer
153 views
Delete File History With Client Object Model (Sharepoint Foundation 2010)
I'm using the Client Object Model to interface my application to SharePoint 2010 Foundation.
This application generates some versions of the same file... it's possible to see all the versions in the ...
0
votes
1answer
253 views
List Onload event
What I want to do:
I have a custom list that contains a lot of items. When an user loads the list, all items of his view should be checked. If there is a special value in the listitem a notifiaction ...
0
votes
1answer
391 views
How to access the TermSets of Metadata service using Client Object Model of SharePoint 2010 Programatically?
I want to know how i can find names of the metadata services available on the particular site, and if those services are available.
Also how can i access the TermSets of the metadata services using ...
0
votes
1answer
251 views
How to get server datetime without postback using JSOM or services
My application page may be long time without reloading, and user changed system date and time. And I need to know datetime from server, not from client.
0
votes
1answer
720 views
SPDiagnosticsService.WriteTrace throws error “Object reference not set to an instance of an object”
I am trying to write entries into logging and have trouble doing so. Using Client object model on SharePoint foundation. Code is running from a console app.
SPDiagnosticsService.Local.WriteTrace(0, ...
0
votes
0answers
98 views
How to add LinkItem inside folder in sharepoint list of type Links
I have SharePoint 2010 in which i have a list whose type is "Links". Inside this "Links" list, i have a folder.
I want to add link item to this folder programatically.
I am using ...
0
votes
0answers
165 views
How set Default-Values of Choice by the Creation of new Lists via (JavaScript) CSOM
Im trying to create a list by using the JavaScript CSOM, but Im stuck at a certain point.
In this example I use the Template "SP.ListTemplateType.issueTracking" to create and enhance a list,
in this ...
0
votes
0answers
905 views
Copy file using javascript client object model - new version
I have a solution that adds a custom button to the ribbon in SharePoint 2010 and am using the javascript client object model behind the scenes to copy a file from Library A to Library B when the ...
0
votes
0answers
105 views
Creating Content Organizer Rules using Client Object Model
I want to create Content Organizer rules using "Client Object Model"
Is it possible to create CO Rules using client object model??
Any pointers to this would be helpful.
also can't i treat the ...
0
votes
0answers
140 views
Uploading file “NewItem2”
I'm attempting to upload a file to SharePoint using the NewItem2 function. However, after uploading the file, I want to get the relative URL of the uploaded file. Is this possible? Is there a ...
0
votes
0answers
378 views
Retrieving Document Library item URL from ID
How can I retrieve the URL of an item/document in a (generic) document library when the only thing I have is the ID, obtained through:
SP.ListOperation.Selection.getSelectedItems();
My intention is ...
0
votes
0answers
455 views
Programmatically add multiple users to various groups based on information in a list
Due to security restrictions, my organization has a very complex group structure granting fine-grained permissions. We are trying to build a portal that allows for an approval system for group ...
0
votes
0answers
126 views
sp.js problem with third party library
My sp.js load is conflicting with Mootools 1.4.1's mootools-core.js, the error output is:
Webpage error details
Message: Object doesn't support this property or method
Line: 2
Char: 1
Code: 0
URI: ...
0
votes
0answers
71 views
Tagging 'I Like It"
I am building a site navigation page containing all the sites and web a user has access to. I am presenting a alphabetized list of Site names to the user. I want to put a "I Like It" button next to ...
0
votes
0answers
241 views
How to get all the users who have access to a sharepoint subweb
Using ecma client object model, we can retrieve all the users under a sharepoint site collection, from User Information List
using API (clientContext.get_web().get_siteUserInfoList() ) or
CAML ...