2
votes
2answers
106 views

How do I get a collection of document libraries using Javascript CSOM?

I'm working on an UI feature for my SP2010 site and would like to display a number indicating how many documents were added to a specific library since the users last visit. The UI will display a box ...
3
votes
0answers
95 views

SharePoint Client Object Model not returning hidden folders in document library

I am using the SharePoint Client Object Model to get information from a SharePoint 2010 document library to be able to delete old htm-files located there. The problem is that these htm-files have ...
0
votes
1answer
773 views

upload to document library subfolder in client object model

I'm using the Client Object Model to upload files from a network drive to a SharePoint document library. Here is how I would specify the upload location if I were uploading to the document library's ...
1
vote
1answer
73 views

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using

public void CheckOut()// CHECK OUT FUNCTION { try { string siteurl = ""; string filePath = ""; ClientContext context = new ClientContext(siteurl); context.Credentials = ...
0
votes
0answers
161 views

Programatically getting SharePoint 2013 document uploader destination folder structure

I want to add documents to my document library folders programatically. I don't know how to get the destination folder structure to upload documents to SharePoint. How do I get destination folder ...
3
votes
1answer
1k views

SP2010 JSOM Client Object Model: How to get all documents in libraries including all folders recursively

I have seen a lot of examples and questions about this out there but nothing I have found has helped me accomplish this. I need to be able to grab all the names of the documents within a given ...
2
votes
2answers
224 views

SP2010: Get all library names within a site using javascript client object model?

How do I get the names of all libraries within a given site using jquery/javascript? the only way i know of is using getByTitle('listtitle'), but I would like all names of libraries (hopefully there ...
3
votes
2answers
539 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
1answer
526 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) ...
5
votes
1answer
1k views

How to Upload File to Document Library using JavaScript Client Object Model?

I want to Upload File to a Document Library using JavaScript in SharePoint 2010. I found that you can copy file from One Document Library to Another but you can't upload File using JavaScript on this ...
2
votes
1answer
970 views

Calling Upload Dialog with javascript, can I pass value through to the edit form that follows?

I have a button that opens the upload dialog from a page using the below approach: function openUploadNewDocumentDialog(passingID) { var dialogOptions = SP.UI.$create_DialogOptions(); ...
3
votes
1answer
265 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 ...
6
votes
4answers
4k views

Creating Nested Folders via Client Object Model

I'm trying to create nested folders in my document library so it looks like this: http://site/PublicDocuments/Folder1/Folder2/Folder3/ The document library "Public Documents" exists but none of the ...
0
votes
1answer
295 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 ...
1
vote
1answer
892 views

Get listitems with custom columns and edit them through c# client object model

I am trying to get a collection of .pdf files from a certain document library, as well as their fields and values. I need three of them - DisplayName, "Barcode"(custom) and "Document Type"(also ...
2
votes
1answer
403 views

How to print document library item from ribbon button

I'm creating some custom features to add functionality to the ribbon. I have created a button to print the page you are viewing very easily like that: SPItem containing elements.xml: <?xml ...
9
votes
3answers
6k views

How to traverse SharePoint Library in Client Object Model?

I have SharePoint Library and i want to traverse all folder and sub folder of it using client object model. Can anybody have solution ?
1
vote
2answers
553 views

Is there a method to lock a SharePoint library as read only while client app is processing?

I'm currently writing C# code to automate doing a set of actions on a number of Excel files in a document library/folder tree. The actions include check out, running macros inside the Excel file, ...
2
votes
1answer
4k views

jQuery & SP2010 : Upload document to library using jQuery?

I built a custom form that saves the data to multiple lists with on click; it works pretty well for its intended use (keeping the data related). Thing is I am totally new at jQuery and SPServices, but ...
1
vote
2answers
161 views

Implementing a better user experience for interacting with a document library

We are about to start a project to implement an enterprise collaboration platform on top of SharePoint 2010 It's basically the notion of workspaces where users can exchange files. However, given the ...
1
vote
0answers
397 views

Get Permissions with client object model

i want to add a permission on a folder who's inside a document library with javascript/jquery/client object model. The problem i have is, its a custom permission level created when some feature is ...
5
votes
2answers
971 views

Javascript Client object model, rename folder

Hey am trying to rename a folder inside a Document library, right now i get my item and everything is good but when i try to rename it using set_item('title', 'NewFolderName') it crashes and unwinds ...
1
vote
3answers
339 views

How to access documents with in a custom content type of Document Set

I have a Library, which stores document sets (the content type here is a documentset which contains more than one word document). Currently I can to get the items from the library using the below code ...
2
votes
2answers
184 views

Client-side Object Model Load Test Metrics

I would like to know if anyone has done any load testing on using managed .NET Client Side Object Model (CSOM)? I am mainly looking for metrics (graphs, spreadsheets, etc.) on the following: Large ...
1
vote
1answer
1k views

Create new Document in Document library with additional Text Fields in Silverlight (Client Object Model)

I have created a Silverlight Application that runs in a SharePoint 2010 web part. One requirement I have is to give the user a prompt to upload a file, and then send it into a specific Document ...
1
vote
1answer
1k views

Creating a new ContentType with Document as base using Client Object Model

It would appear that the Client Object Model only retrieves user-defined content types as part of the ContentTypes property for a given web. I would like to create a new content type using Document as ...
7
votes
1answer
1k views

Create a Document Library Item base on a ContentType with JavaScript Object Model (JSOM)

I'm trying to create a new item in my Entreprise Wiki Pages Document Library. It's associated with a News Content type. I was able to retrieve the SP.List object (myList), the SP.ContentType object ...
1
vote
1answer
894 views

How to check if current folder in document library has child items via JavaScript client object model?

I have a custom button on ribbon, which performs some action with current folder (download folder content as zip package). I want to disable this button in case if current folder doesn't contain any ...
2
votes
1answer
634 views

Enable versioning Document Library

i am trying to enable versioning on a ducument library using the client object model my code currently is as follows when i create the document library. ClientContext clientContext = ...
4
votes
1answer
2k views

Document Sets and Client Object Model

What are the options to manage documents sets using Client Object Model? I need to create new document sets and upload some files in them...
0
votes
1answer
742 views

Refreshing a document library using the client side UI in 2010

After adding a document to a sharepoint document library from an SPModalDialog, how can I refresh the underlying list using the new 2010 client object model in SharePoint?