Tagged Questions
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 ...
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
60 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 ...
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 ...
1
vote
1answer
36 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 ...
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:
...
0
votes
2answers
67 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 ...
2
votes
0answers
77 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
0answers
55 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.
...
1
vote
2answers
71 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
55 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:
...
2
votes
1answer
87 views
Javascript CSOM SP.List get_onQuickLaunch
I am trying to get the onQuickLaunch flag from a SP.List using javascript. I am able to get other list attributes, however when I try to execute
list.get_onQuickLaunch();
I get an error
Uncaught ...
0
votes
0answers
392 views
CAML Query for sub folder documents javascript
I'm trying to query for documents in a specified sub folder of a document library. Using U2U CAML builder, I can generate the query and return successfully within it.
However, when I run the query ...
1
vote
0answers
83 views
SPFieldUrl does not work
I have an external list, items in that list have a field that contains an url. I want to show this url as a link in sharepoint form.
I found this example
and defined in my Creator and Updater methods ...
1
vote
1answer
338 views
How get item in CommandUIHandler EnabledScript use javascript
can anyone help me with the problem:
I have a list external items from my system and i add a custom button on a ribbon. My item has a state and depending on the state my button should be available or ...
1
vote
0answers
33 views
How add personal list for all users
I want to integrate Sharepoint with my external system. Sharepoint should load tasks from my system and show them in the list on user personal page. Integration should be done using Sharepoint ...
0
votes
1answer
176 views
Registering pageComponent using ClientObjectModel
is there any ways to register PageComponent using client object model?
I want to add custom action on the edit form with dynamically populating FlyoutAnchor. But when page has been loaded i recieve ...
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
2answers
452 views
Remove non full controlled Permission Sharepoint Groups from a SharePoint List using Client Object Model
I have SharePoint List which has stop inheriting from the Parent Sub Site. I need to retrieve the SharePoint Groups which are not been assigned with Full Control on the List. Then need to remove them ...
0
votes
1answer
119 views
FlyoutAnchor PopulateQueryCommand through clientContext
I have a problem.
I want to add Custom action on a Sharepoint Edit form. This must be FlyoutAnchor and i want generate his content dynamically.
I'm adding them throuh ClientContext object model(using ...
1
vote
1answer
483 views
List item validation using .NET Client Object Model
On a SharePoint Foundation 2010 installation, I have a list defined and have set some simple validation rules on a couple of the fields:
Text field (required)
Number field (required, min: 50, max: ...
0
votes
1answer
128 views
How i can get “item ID” column through “BDC Identity” column
I create external list for display external items from my wcf service and add custom action on that list EditForm through ClientObjectModel with this url:
...
2
votes
2answers
507 views
How to retrieve Sharepoint list data in master page
I have Created Custom Master Page.
and i want to access SharePoint List Data in this Master Page using JavaScript.
I write the following script to access data but it gives error that ...
2
votes
1answer
199 views
How can I get specific SharePoint site GUID using javascript/jquery
For example:
I have a site under this url: http://intranet.contoso.com/news
When I open it i would like to read it's GUID for future use in my custom AssetPortalBrowser.aspx url picker.
Thanks!
1
vote
1answer
328 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.
2
votes
1answer
469 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 ...
0
votes
3answers
683 views
ListItem Update from Client Object Model Not Triggering OnWorkflowItemChanged Activity
I am experiencing difficulty creating a file in a document library using the client object model. My custom Visual Studio 2010 workflow is not detecting the updates I am making to the file's list item ...
1
vote
3answers
1k 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 ...
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 ...
1
vote
2answers
205 views
Which one is strongly typed the SharePoint Client Object Model or REST
I was researching about the SharePoint Client Object Model and REST but I am confused which one is strongly typed.
3
votes
3answers
625 views
Dynamically registering JavaScript from within a sandbox web part
I am mid-way through development of a corporate intranet that will be hosted in SharePoint Online. For this reason, we are restricted to using sandbox solutions. One of the last "gotchas" that I need ...
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
...
0
votes
2answers
1k views
How Can I Add a New File to a Document Library With Client Object Model?
I'm a beginner with SP COM. I can't find any samples about this online.
Could anybody tell me how I should proceed to add or remove a file from a document library in SP 2010 with the Client Object ...
0
votes
2answers
2k views
How to use javascript client object model in sharepoint designer?
I have to fetch data using javascript client object model and for that i have to use Sharepoint Designer 2010 only i have searched on google and there i got solution only by adding code in visual web ...
-1
votes
1answer
89 views
Specifying the ID of a new item
I basically want to write a server-side or client object model utility (Client object model preferred, but we can run the app on the server if we have to in order to use server side object model) that ...
2
votes
1answer
269 views
Can I Access the SPAuditQuery from the JavaScript Class Library?
Or there's a SP2010 Built-in service to access Audit data?
[UPDATE]
Quick awnser, No, there's no way to access the SPAuditQuery from the SP JavaScript Class Library.
At the end I end up using a WCF ...
1
vote
2answers
87 views
javascript method to delete content from recycle bin of a single site only
So I know you can use jvascript:emptyItems() in the address bar of the recycle bin to clear it, but this clears the entire site collection.
Is there a way using javascript to empty the recycle bin ...
1
vote
1answer
110 views
SharePoint 2010 server object model required runwithElevatedPrevileage
I have a query that SharePoint 2010 server object model required runwithElevatedPrevileage. if suppose we not using that elevated access, what are all the restriction we will face?...
1
vote
2answers
264 views
Created a custom image uploader for the Rich Text Editor, but how do I insert the image?
Some background: I have created a custom image uploader for my rich text editor. I feel like I have taken the functionality most of the way, currently it can:
Upload the image to another server
...
0
votes
1answer
266 views
GetListItem(strUrl) equivalent for ClientContext
I know using server side code I can use GetListItem(url) to get an item using a server relative/absolute url (such as this question) however I cant seem to find the same code using the Client Object ...
0
votes
0answers
914 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
2answers
3k views
How to close a modal using javascript from code behind?
So far I have tried this:
Page.ClientScript.RegisterStartupScript(this.GetType(),
"closePage",
"window.returnValue='http://sp-pubdev:88/Resources/Images/testFile.png';
alert(window.returnValue);
...
0
votes
1answer
2k views
The property or field has not been initialized. It has not been requested or the request has not been executed
I am getting this error and from what I understand this is when you try and access columns from the list item. I have tried various things including the line below:
clientContext.Load(items, eachItem ...
4
votes
2answers
215 views
Can you call SPSite on a different machine to SharePoint setup?
I'm trying to call SharePoint from within a standard .NET class library. This will probably be hosted on a different server to SharePoint.
I just need to return an item from a list, and wondered if I ...
0
votes
1answer
254 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
1k views
Setting file Content Type using Client Objects
Setting the Content type the same way as setting other metadata fields does not work in ClientObjects. Anybody knows why?
Here is what I do, and works for other columns:
var fci = new ...
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 ...
8
votes
3answers
4k 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 ?


