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

learn more… | top users | synonyms (1)

1
vote
0answers
99 views

Getting column information from a sharepoint 2010 list

I'm trying to figure out how i can get information about a column in a Sharepoint List, like what type of column it is (single line, number, date etc...) and whatever additional column info that ...
0
votes
3answers
770 views

jquery client object model to return json: what about caml vs. js filtering?

trying to learn client object model (ecma/js/jquery) approach to returning json data and working with that. below I will supply a quick example, but my question is basic context of how would I go ...
0
votes
1answer
1k views

SP.Web.EnsureUser(user) does not seem to work. (JavaScript Client OM)

Supposedly, SP.Web.ensureUser(user) works according to this MSDN link but I cannot seem to get it to work in my JS code. While debugging, I can see that SP.Web exists and the user variable is ...
1
vote
0answers
42 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
796 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
92 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
2k 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
0answers
212 views

Convert Sharepoint Calendar Recurrence Data from xml to string

I am creating actual events from sharepoint recurring instances, i want to convert recurrence dat which is xml to string, how can i do it automatically.
2
votes
1answer
4k views

How to open a form in a modal dialog popup using C#

I have virtually no experience with web development but now I need to create a web part for SharePoint 2010 and I am stuck. The web part is supposed to find all content types derived from folder ...
2
votes
1answer
2k views

sp.js not loaded js file provisioned by a module

I am trying to use a .js file to highlihgt nodes in a top navigation menu based on url of the current web. The javascript file is provisioned by a Module in a Empty SharePoint 2013 project item. The ...
0
votes
1answer
324 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 ...
7
votes
4answers
4k views

ExecuteOrDelayUntilScriptLoaded too slow in Firefox and Chrome

I want to use CSOM but waiting around 2 or 3 seconds after page load before I can even do my first query is crazy! See below. Using jQuery dom ready shows a reasonable ready time, but SP.ClientContext ...
1
vote
1answer
552 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: ...
2
votes
3answers
2k 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 ...
0
votes
1answer
562 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
0answers
465 views

create list using CustomSchemaXml from client object model

I'm using Client Object model of SharePoint 2010. What is the property CustomXmlScheme in list creation? MSDN say nothing about it. It seems not working. I'm using this code: string xml = @" <?xml ...
0
votes
2answers
360 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: ...
1
vote
0answers
66 views

Upload a custom template using client object model

I am trying to upload a new custom template to the Template file repository using the Client object model. But I couldn't any provision to add a template as such. So is there any way to do it. Thanks ...
5
votes
1answer
3k views

CSOM Get ListItem of Folder

In an application I'm working on, I'm interacting with SharePoint (2010) via the .NET Client-Side Object Model, and am trying to account for a large number of possible configurations of document ...
5
votes
1answer
958 views

Working With Content Approval / Moderation In CSOM

The SharePoint Object Model provides a property of an SPListItem called SPListItem.ModerationInformation.Status to allow you to determine the current content approval / moderation status if a document ...
4
votes
3answers
886 views

Commit modal dialog and then display notification

I have a modal dialog that I commit by calling window.frameElement.commitPopup(), and this is great because it refreshes the parent window. However I would also like to display a notification on the ...
2
votes
2answers
1k 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
628 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
745 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.
0
votes
2answers
1k views

Add multiple people using Javascript Client Object Model to a Field of Type SPFieldUserValue

I want to update a UserField client side. I found the following code at this topic How to Use ECMA CSOM to Set a Field of Type SPFieldUserValue Tried the following code: var users = new Array(); ...
5
votes
3answers
8k views

How to access list in SharePoint Hosted App?

I want to create an Sharepoint hosted app but how to access list in these App ??
4
votes
1answer
956 views

Updating “Editor” or “Modified By” without changing timestamp

We changed domains and I need to updated the User fields in all lists and libraries to reflect the new domain accounts. (I know that stsadm.exe -o migrateuser will mostly handle this but since it ...
1
vote
1answer
657 views

Getting the Item ID from the ECB (Edit Control Block) using JavaScript

I know I can use {ItemId} to pass it to the URL like so: <UrlAction Url="~site/_layouts/ConvertItem/ConvertItem.aspx?ListId={ListId}&amp;ItemId={ItemId}&amp;ItemUrl={ItemUrl}"/> ...
5
votes
1answer
2k 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
2answers
891 views

Share Point Client Object Model SAML token from STS

I am planning to use the share-point client object model to get the data(Lists etc) from share-point site ( Sharepoint site and mobile sites are hosted on two different machines/IIS servers). I do ...
2
votes
1answer
42 views

SP Tools help - Not returning results

I have downloaded SPTools from github, and have followed the directions of uploading the files to a Document Library. When I try to open the index.html file from the document library, I get prompted ...
4
votes
1answer
2k 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: ...
1
vote
1answer
215 views

Bind WPF DataGrid to ListItemCollection

I need to display the items from a list in WPF application. I have WPF DataGrid and I use managed client object model to retreive the list items. I would appreciate if someone can explain a way to ...
0
votes
1answer
308 views

VB CAML Query to select most recently created List Item where name = 'Blah'?

Can someone tell me how the VB CAML Query would go to select the most recently created List item where 'FullName' field = 'Joe Smooth'. Using Silverlight 5, SharePoint Client Object Model, VB.Net and ...
0
votes
2answers
912 views

Get current user from SP Client Object Model in Silverlight / VB

Using Silverlight 5, VB.Net and SharePoint Online. Tried this to read the current user's name into a textbox, but the textbox remains blank. Any ideas? Thanks. Imports Microsoft.SharePoint.Client ...
1
vote
0answers
110 views

How to Reconcile External Data and Multiple Values for a List Item?

I am currently developing a solution that requires me to integrate a SharePoint 2010 list (generic list type) with items from a SQL Server database. In addition to this hypothetical field being ...
3
votes
1answer
1k views

access a list in a subsite with Javascript

How can i access a list in a subsite? function Read () { var caml = "<View><ViewFields><FieldRef Name='Title'/><FieldRef ...
1
vote
1answer
109 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: ...
0
votes
1answer
148 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 ...
8
votes
1answer
541 views

Opening and closing AssetPortalBrowser.aspx in SharePoint modal popup

I am trying to open the "OOB" AssetPortalBrowser.aspx from a page within a SharePoint native modal popup. My aim is to get the selected filename back to the script. So far I was able to open the ...
2
votes
1answer
1k 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(); ...
1
vote
2answers
358 views

js/jquery doesn't work on site's upload.aspx?

is that right? If I go to a library in the designer, i can see upload.aspx there. Can't create a new one (and i guess that is because there is really only one per site, or collection?). Anyway, I can ...
4
votes
2answers
179 views

Is it possible to Fire event when Content type added in Shared Documents in sharepoint 2010?

How to fire event when any content type added in shared document library ? How to handle this event ?
3
votes
2answers
444 views

calling click event on dynamic controls

What I have is fairly standard code for using JavaScript with SharePoint 2013. Inside the sharePointReady function, I have a few dynamic controls that are added to the page. The problem is that when ...
2
votes
1answer
196 views

Why Isn't the Client Object Model as Vulnerable as I Think?

I can use any sort of console in Firebug, Developer Tools, etc. to access any Javascript included in a page and make calls to Javascript functions without a problem. If, on a SharePoint page, I use ...
1
vote
1answer
268 views

Sharepoint 2013 publishing page creation using Client Object Model

I am using SharePoint 2013. Is there any way I can programmatically create a page using ONLY th Client Object Model? Also notice that the page should be editable for further use.
0
votes
2answers
245 views

COM: javascript/jquery method for creating a xml data file from SharePoint list data (multiple)

Does anyone know how I can pull off creating an xml data file from data in multiple lists using SPServices/Javascript/jQuery? I can certainly bring all the data I need out to a page and load into DOM ...
2
votes
1answer
282 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.
0
votes
1answer
2k views

How to read URL/Description from a Hyperlink field using CSOM

Using CSOM (JavaScript) how do you get the URL and description fields from a Hyperlink field?
3
votes
1answer
296 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 ...