Tagged Questions
0
votes
0answers
19 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
1answer
35 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 ...
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 ...
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.
1
vote
1answer
66 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
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
65 views
Fill the fields in new form for an item
I've came across a requirement where I need to fill some of the fields in newform.
So basically we start from view item, where we can see an existing item in a list, then we click something like move ...
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
109 views
Changing Content Editor Programatically - Client model API?
Is it at all possible to make changes to or add a content editor to a page using only the Client Object Model API? There does not appear to be any reference to a ContentEditorWebPart dll.
4
votes
0answers
69 views
Passing args to QuickLinksDialog with JS
I have a small button on a site which when i press should start a QuickLinksDialog and fill in some of the fields there.
Everything goes good and well except the fields (like: title and url) still ...
0
votes
0answers
139 views
How can change task percent complete in project server programmatically?
I want to develop a client code in Java (C# api was useful till now) to change task status in a project in MS Project Server. Using wsdl I can read project entities, but I couldn,t find a way to ...
3
votes
1answer
650 views
Client Object Model - Update Document Library Metadata - Lookup Field with no required value
I am attempting to update metadata for documents in a document library (or List) using the client object model. I have whittled down a number of the error messages I was getting and now I am hitting ...
0
votes
2answers
257 views
Notify item update by JavaScript
I created a popup window that updated the metadata information of my item.
When the operation of updating is complete I would like to close my popup and show the notify alert.
I succeed to close the ...
1
vote
2answers
1k views
Try Get Field with client object model without error
Question regarding the client object model. I wrote some client script for a procedure, but i don't know, how can I determine if the list or item has the field available or not?
For example:
...
2
votes
0answers
449 views
Url to an item with Client Object Model
Regarding my question, at this moment i'm writing some client object model code and I can't find a way to retrieve create make an url ...
My question now is:
How can I create an url to an item? I ...
0
votes
2answers
252 views
Ribbon button and client object model code
My question is regarding the button on the ribbon and client object model code. I'm not sure how to do it:
So i have a button here:
<CustomAction Id="NewButton" Location="CommandUI.Ribbon" ...
0
votes
1answer
211 views
How to access a javascript variable from a parent page in a modal window?
I have a page with the following javascript on it:
var myVal = 'something';
Pub.Ribbon.PubRibbonComponent.launchDialog('_layouts/RteUploadDialog_Advanced.aspx',
...
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
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
3answers
408 views
is it possible to get file properties
I'm trying to crawl over site documents and find their properties.
While I was able to do the first part, using something like
ClientContext clientContext = new ClientContext("http:xxx");
...
2
votes
1answer
134 views
Server side equivalent of this Client Object Model code?
I have the following javascript:
SP.ListOperation.Selection.getSelectedItems();
And I'm wondering if there is a Server Side Object Model equivalent to this that I could use in Page Load?
The ...
1
vote
2answers
440 views
Is it possible to change the visual style of a JSGrid row?
I am working on a SharePoint solution using the SharePoint JS Grid control to display data. What I'd like to do is to change the default style (mainly background color) of specific rows in the grid to ...
0
votes
2answers
976 views
Adding description to sharepoint link URL using the C# CSOM
I'm currently adding the URL except the description is an ugly link.
I would like to add the description to the URL in a links list on sharepoint online.
My current code to add a new item from an ...
5
votes
1answer
341 views
Client Object Model SystemUpdate
I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist.
Another solution would be to disable the ...
5
votes
3answers
6k views
Get Site Collection full URL using javascript
I want to get the URL for my site collection. One way I thought I could do it was using the window.location in javascript and getting it that way.
I know that you can use ECMA script and the client ...
1
vote
1answer
184 views
How can i get entire role assignments from SP 2010 using the COM interface including the users in the AD groups and not the groups names?
I've been trying to get all the RoleAssignments using the COM interface. the problem is that i get the AD user group names instead of the actual users inside the groups.
my code looks something like ...
0
votes
1answer
383 views
Using the Sharepoint Client Object Model with ASP.NET C# page
So why when I add the line <%@ Import Namespace="Microsoft.Sharepoint" %> does the page error with:
An error occurred during the compilation of the requested file, or one of its ...
3
votes
1answer
2k views
How do I save files that are larger than 1MB using the Client Object Model?
I'm trying to save a file to an SP document library using the Client Object Model:
//populate information about the new file, from disk
FileCreationInformation fci = new FileCreationInformation();
...
0
votes
1answer
646 views
Setting a Publishing Hyperlink Field Value that has no Value
I am using the Object Model and the Microsoft.SharePoint.Publishing.Fields.LinkFieldValue namespace in an attempt to set the value of a Hyperlink Column on a SharePoint 2007 Publishing Site.
...
1
vote
1answer
1k views
Setting User column value via Client Object Model
I'm trying and failing to set the value of a User column via the SharePoint client model:
int userID;
string displayName;
/*
Look up userID and displayName from Web Service here
*/
...
2
votes
1answer
71 views
Silverlight application privileges
I have a silverlight application which uses the client object model to access the sharepoint server.
When i run the app "out-of-browser" with elevated trust everything works great, but when i try it ...
1
vote
1answer
630 views
How can I access the Taxonomy store using the Client Object Model?
We are writing an Outlook plugin and need to create an overview of the available Managed Metadata term stores and terms from clients that connect to SharePoint. I have used the TaxonomySession to do ...
1
vote
1answer
261 views
Help with Silverlight and SharePoint
As a continuation of my last question, I can get the data correctly now just I am having a problem getting it to display. I want it to be in a DataForm control but I seem to be unable to connect it ...
0
votes
2answers
2k views
How to read from a list using Silverlight and the SharePoint 2010 Client Object Model?
I am attempting to write a simple Silverlight webpart that reads information from a list and then outputs it to a data grid. I can get all of the lists, their titles and their field titles fine but ...
1
vote
1answer
104 views
Client Object Model and 32 bit
While trying out Client Object Model, I was wondering whether will there be any issues if the 'Platform Target' is NOT set to 64 bit? I tried setting the value to 32 bit, even then the application was ...
0
votes
1answer
388 views
Is there a way to get the currently logged user’s colleague list using ECMA client script?
Is there a way to get the currently logged user’s colleague list using ECMA client script?
Used the below script to pull the currently logged user name:
<script ...
4
votes
1answer
1k views
How to find the Author Name using SP Client Context in SharePoint 2010?
I am trying to find the Author Name(created by) for a given Item Id using the SP Client context in SharePoint 2010.
Below the code snippet
var ctx = new SP.ClientContext.get_current();
...
2
votes
2answers
843 views
How do I test if I will be able to execute a query (does the site exist)
When I run a (CAML based query) executeQuery against Sharepoint, sometimes the site does not exist (it is created by a workflow process which may not have run). When this happens, I get a ...
5
votes
5answers
946 views
When I execute a CAML query, how do I know what ListItem details I can include?
I was querying a SharePoint library, trying to retrieve some file attributes. Apparently some things like FileType and Date are not supported, even though those fields are listed as a built in field. ...
2
votes
1answer
1k views
SharePoint 2010 set a custom page as home page through a feature
I have a WebTemplate using a team site as BaseTemplate,
and was wondring how I could set the default page as home page instead of the home.aspx page and this during the provisioning process of the ...
3
votes
1answer
136 views
Time conversion via ClientContext
In native SP list I have item with datetime field which shows 24.1.2010. 00:00:00.
When I try get it with ClientContext, I got that item field with the time 23.1.2010. 23:00:00.
I understand that ...
1
vote
1answer
304 views
SharePoint 2007 Search Webservice client call - darrenjohn's API
I want to get the same result set as sharepoint search returns using webservice/object model, what is right way of doing it?
Let's say:
If sharepoint search core result webpart says 20 items/result ...
2
votes
2answers
272 views
link documents in sharepoint 2010
how can i create a link to a document in a library in c# using the object model in sharepoint 2010?
0
votes
2answers
81 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 ...
