API for interacting with SharePoint from .NET, Silverlight, and JavaScript.
4
votes
0answers
70 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 ...
2
votes
0answers
96 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 ...
2
votes
0answers
199 views
Opening and closing AssetPortalBrowser.aspx in SharePoint model popup
I am trying to open the "OOB" AssetPortalBrowser.aspx from a page within a SharePoint native model popup.
My aim is to get the selected filename back to the script. So far I was able to open the ...
2
votes
0answers
457 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 ...
1
vote
0answers
22 views
Sharepoint 2010 javascript client object model - downloading items and item attachments?
Is there a way, so that you can download the items from a list and all its item attachment files in one context call? Currently I am downloading all the items, then looping through each item, and ...
1
vote
0answers
14 views
How to create object of type SP.ListItemFormUpdateValue
How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side?
If this is not posible, how can i read a value in a ...
1
vote
0answers
25 views
MOSS 2007: Multi-layer flyout menus on the global navigation
I've reset the MaximumDynamicDisplayLevels to 30. My goal is to create a global navigation menu that leads to other SharePoint sites/external links. Each tab on the navigation is the top category with ...
1
vote
0answers
36 views
Will content type names change with locale? (Sharepoint 2010, client object model)
I'm making a content type/id hashmap. The relevant part of the code is something like this (js):
contentMap[content.get_name()] = content.get_id().toString();
I'm worried that the name will change ...
1
vote
0answers
31 views
Retrieve property bag for sub sites using JSOM
I need to go through all sites belonging a site collection to validate a property bag of them. following is my code. the problem is the second call to get the property uses only one of the sites. I ...
1
vote
0answers
73 views
How to get a client context for App in provider-hosted Apps?
I use a provider hosted Apps, so need to work with an App Web and Lists.
Could anybody provide a code snippet to get ClientContext() of the App?
Can I do something like this?
Uri appWeb = new ...
1
vote
0answers
50 views
COM BCS model programmatic creation methods
Following the source code found here: http://code.msdn.microsoft.com/office/Creating-SharePoint-2010-ad694d17
I've managed to create the Create, Update and Delete method, but only the Delete ...
1
vote
0answers
84 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
0answers
69 views
Filter Calendar view by Title in SharePoint 2010
i want to filter calendar view using title field. Is it possible to filter calendar view without make changes in modify view ?
1
vote
0answers
93 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 ...
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 ...
1
vote
0answers
78 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 ...
1
vote
0answers
89 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.
1
vote
0answers
75 views
SharePoint Online External Sharing Feature - Available through API?
I have a case where we would like to create a web part for use in SharePoint Online where users can request to share a site with an external vendor. We would like to automate the process of Sharing to ...
1
vote
0answers
423 views
Client Object Model : “Microsoft.SharePoint.Client.ServerException: The request uses too many resources”
When deleting 1000+ (link) items from a list in one batch using the COM, I encountered this exception :
Microsoft.SharePoint.Client.ServerException: The request uses too many resources
It seems ...
1
vote
0answers
208 views
Validate list item with javascript API
I want to develop a custom datasheet view to edit a list.
I add item through the javascript API. The problem is that the service doesn't control fields value. For example :
- I add an item with a ...
1
vote
0answers
862 views
set multiselect lookup column using jquery
I have a Multi select Look up column which as you all know is a control with two list boxes and "Add or Remove" Buttons.
The user populates the right-hand side of the control with some values by ...
1
vote
0answers
217 views
List Item file attachment using ECMAScript Object Model
How to simply upload & attach file to listItem using Javascript? And how to get/download attachments.
1
vote
0answers
48 views
Is it possible to use https with Client Object Model in Silverlight
I found here this QA: Connect client object model to https url which mentions this article how to do it in full .NET client object model.
That would be great if the class ServicePointManager (MSDN) ...
1
vote
0answers
278 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 ...
1
vote
0answers
285 views
Managed Client Object Model NavigationNode Url Property Incomplete
It seems the Client Object Model is stripping out the "query" part of a URL stored inside the NavigationNode elements. I am wondering if this is a bug or perhaps I am doing something wrong?
Consider ...
0
votes
0answers
16 views
The service '/_vti_bin/client.svc' does not exist
when i go to mysiteurl/_vti_bin/client.svc I am getting exception "The service '/_vti_bin/client.svc' does not exist". The same does not happen in my staging environment, it is available there.Because ...
0
votes
0answers
4 views
Initialize fields for Projects
I'm trying to get the ProjectSiteUrl included/initialized when I retrieve all projects.
Similar to how the Sharepoint CSOM can query lists. Eg:
ListCollection lists = site.Lists;
...
0
votes
0answers
11 views
Possible to load different things in context for sharepoint client object model code?
In my javascript (ecma/client object model) for sharepoint 2010, I am first making a request to get the current user name, then when that succeeds I then make another request to download items from a ...
0
votes
0answers
20 views
executeQueryAsync in ecma client object model causes 404 error
I have a custom action where I will create a new item in the ecb menu for a document library and once clicked it will call a javascript function and there using ecma client object model I will ...
0
votes
0answers
28 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
0answers
11 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
57 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.
...
0
votes
0answers
37 views
How to Enable intellisense for ecmascript cliennt object model in sharepoint 2010
I want to enable intellisense for ecmascript object model in sharepoint 2010.
Iam able to get some properties but not getting all the objects and properties.
like for below code iam only able to get ...
0
votes
0answers
12 views
How to fetch sharepoint “My Site” link in silverlight using client object model
I want to access Sharepoint "My Site" link in my silverlight application.
Is there any way to fetch "My Site" link using client object model in silverlight.
Please help and Thanks in Advance.
0
votes
0answers
130 views
Binding ListItem to DataView web part or GridView using Client Object Model (Jquery)
In SharePoint 2010 I need to get list items from a list and bind it to either DataView web part or SPGridView control on page. I need to do this using client object model (jquery). I am familiar with ...
0
votes
0answers
59 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:
...
0
votes
0answers
143 views
current user is always is administrator on a SharePoint App
I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator.
function sharePointReady() {
...
0
votes
0answers
403 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 ...
0
votes
0answers
132 views
Get Distinct Count of Columns in a sharepoint List based on other column values using Javascript
I need to get Distinct count of columns in a sharepoint list based on other column.
For Example, a List look like this,
Name Location Gender
AAA Mumbai Male
BBB ...
0
votes
0answers
63 views
how to access the Managed Properties at Site Collection Level and at Global Level in SharePoint2013 .**
Any help will be really appreciated if someone can point to find a good way of
How to access the Managed Properties at Site Collection Level and at Global Level in SharePoint2013 .**
My requirement ...
0
votes
0answers
222 views
Build CAML query by value from ClientPeoplePicker
I use these lines of code:
<SharePoint:ClientPeoplePicker ID="clpUser" runat="server" UseLocalSuggestionCache="True"/>
JS:
var peoplePicker = ...
0
votes
0answers
144 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.
0
votes
0answers
299 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
0answers
38 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 ...
0
votes
0answers
143 views
Create list using List Template in C#
I just want to create a list with list template, which would be stored in physical path in C#.
Could you guys help me to do this?
0
votes
0answers
107 views
How to change Text/Label of CustomAction button of Ribbon?
I want to change the Text/Label when I click on the CustomAction button of Ribbon.
It should be change from my Javascript function because I want to check the condition in that.
My CustomAction ...
0
votes
0answers
114 views
Ecma script sharepoint 2010 issue
how to get all folder in document library with first image url in that folder.
for this i get all folder from document library and then get first file from that library
get all folder and in that ...
0
votes
0answers
72 views
Listen on file upload - AddItemEvent by ECMA Script (Javascript COM)
I need your help concerning this issue:
I want to upload a document to DocLib. Therefore I call the NewItem2 method
NewItem2(event, referenceURL);
Up to here - no problem. Now the issue:
I want ...
0
votes
0answers
152 views
SharePoint Client Object Model - Problem adding Item to List
The VB code below works in a stand-alone Silverlight app to add new items to a pre-existing list, but when I include it in a larger app it doesn't.
The only difference I can see is that with the ...
0
votes
0answers
142 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 ...

