Questions tagged [client-object-model]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
566 views

ClientContext - how to tell if you have an active connection?

I have this code : ClientContext clientContext = new ClientContext(this.siteURL); List oList = clientContext.Web.Lists.GetByTitle("AList"); I cant seem to access any properties for oList, is there a ...
1
vote
2answers
114 views

How to provide a generic service to create and update documents

Problem: We need to create a generic document repository that will store all documents within an enterprise. The repository will be used by external systems, that is other SharePoint Web Applications (...
17
votes
1answer
7k views

Client Object Model Equivalent of SPSiteDataQuery?

I'm looking for an equivalent to the SPSiteDataQuery functionality in the Client Object Model (COM). The CamlQuery can be used with an instance of List to execute SPQuery level of aggregation, but is ...
0
votes
1answer
1k 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?
1
vote
1answer
3k views

Can't add item using client object model of sharepoint 2010 with read only permission to user

I have already developed Silverlight application in SharePoint 2010 using client object model. But I have one scenario that user can comment on the item, so there is a update operation come in ...
0
votes
2answers
257 views

Sharepoint - 2010: how to add ajaxified part into standard list

I am new to Sharepoint and nearly completely satisfied what lists can do out-of-the-box. But I have to add new column with ajax autocomplete features. I'm extensively reading documentation, books ...
0
votes
1answer
5k views

Create a new link to a document using SharePoint 2010

I need to add a new document link to a document library using the client object model. I suspect I could copy the format of the .aspx file used in the "link to a document" items and upload it as a ...
1
vote
1answer
744 views

Custom ECB dropdown menu API?

In 2010 (or 2007) is there a server control that is responsible for rendering of ECB menus? For example, if I wanted to create a custom UI for a Document Library (NOT using XSL/DataViewWebPart/etc), ...
5
votes
2answers
3k views

How to disable a ribbon button when a folder is selected

I have added a new button to the SharePoint ribbon for document libraries. This all works well and the button is enabled / disabled depending on the number of items selected... fine! I want to ...
3
votes
0answers
557 views

How do I get the full folder path of a selected list via the Ribbon and Client Side Script? [closed]

What I want to achieve is something similar to this OOB method: SP.ListOperation.Selection.getSelectedList() But this method only returns the GUID of the selected list. I would like to get the path, ...
17
votes
2answers
3k views

Cannot add custom web part to page using the JS OM

I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox. I have it working ...
0
votes
1answer
1k views

ECMAScript Client OM with External List

In SharePoint 2010, for a regular "custom" list calling SP.ListOperation.Selection.getSelectedItems() using the ECMAScript client object model returns an array of item IDs. These IDs correspond to the ...
4
votes
2answers
6k views

Changing the SP.UI.Notify notification color

Does anybody know how to change the color of the notification popup displayed by the SharePoint 2010 client object model for Javascript? The following always gives me a green popup: SP.UI.Notify....
5
votes
1answer
580 views

Performance of SharePoint 2010 Managed Client Object Model

Is there any published information (by the community or Microsoft) about performance of the new web service based Managed Client Object Model versus the pre-2010 object model?
4
votes
2answers
338 views

Dialog Framework References

One of the new features in SP 2010 is the dialog framework, so that the user is presented with a uniform UI. What are the best references or tutorials you've seen about this feature? So far, this is ...