sharepoint-2010

Authenticating to Custom WCF Service in Sharepoint 2010

江枫思渺然 提交于 2020-01-15 08:29:42
问题 I've created a custom WCF service in SharePoint 2010 which I am trying to call via a JQuery Ajax request. My custom WCF service is modeled on the example given here: Link: http://blog.sharepointbits.com/2010/04/custom-wcf-services-in-sharepoint-2010_17.html The above method gave me a WCF service I could access from C# server-side code, and a custom InfoPath form, however, I was unable to get a response using JQuery Ajax. I read elsewhere on Stack Overflow to use

Authenticating to Custom WCF Service in Sharepoint 2010

雨燕双飞 提交于 2020-01-15 08:28:06
问题 I've created a custom WCF service in SharePoint 2010 which I am trying to call via a JQuery Ajax request. My custom WCF service is modeled on the example given here: Link: http://blog.sharepointbits.com/2010/04/custom-wcf-services-in-sharepoint-2010_17.html The above method gave me a WCF service I could access from C# server-side code, and a custom InfoPath form, however, I was unable to get a response using JQuery Ajax. I read elsewhere on Stack Overflow to use

How to deploy custom webpart from one server to another in sharepoint 2010

流过昼夜 提交于 2020-01-15 06:31:26
问题 I can't find any answers on how to deploy my custom webpart from one SharePoint 2010 Server to another SharePoint 2010 Server. I have a farm solution custom-webpart developed in SharePoint 2010 and I want to move to my webpart to a different environement. Can anybody give me step-by-step like how to deploy? thanks. PS: VS2010, SP2010 回答1: Add-SPSolution fullpathtoWSP Install-SPSolution –Identity NameOfWSP –WebApplication http://WebAppurl -GACDeployment (give it time to deploy across the farm

Disable Ribbon Button

最后都变了- 提交于 2020-01-14 19:03:39
问题 I want to disable and NOT hide a ribbon button (specifically Ribbon.ListItem.New.NewListItem) on a particular List type. On web I could find a lot many posts showing me ways to remove/hide buttons but none really worthwhile which could tell me how can I just disable an alrteady existing sharepoint button in my custom List type. e.g. Following code does remove the button instead of hiding. Id="RemoveRibbonButton" RegistrationType="List" RegistrationId="213908" Location="CommandUI.Ribbon"> 回答1:

How can I authenticate SharePoint REST calls from Android App?

社会主义新天地 提交于 2020-01-14 06:39:21
问题 I have a website that is built using SharePoint Foundation 2013.I have a number of list and libraries there. For Example: I need to develop a android application to show the SharePoint List Items/Data. Using the SharePoint 2013 Rest API, We can get the Data form SharePoint. But The problem is the authentication. I'm using Windows NTLM claim based authentication in the SharePoint foundation 2013. How can I authenticate my SharePoint site inside the android application and get the SharePoint

updated listitem attributes aren't commiting changes to sharepoint

不羁岁月 提交于 2020-01-13 13:12:12
问题 i'm uploading a document to sharepoint.. however i would like to provide a custom name rather than it inherit the name of the file which im uploading. my code was based on this solution: http://www.codeproject.com/Articles/103503/How-to-upload-download-a-document-in-SharePoint-20.aspx however this doesnt work. Additionally, i would also like to provide a title of the file: so i wanted to update the title: uploadFile.ListItemAllFields.FieldValues["Title"] = "my custom title"; However, once the

How to use selected User-profile service in SharePoint

Deadly 提交于 2020-01-13 07:25:49
问题 Basically I am making a timer job to send a birthdayWish email fetched from SharePoint userprofile service . But problem is I have multiple userprofile services on server. like 1). userprofile service1 2). userprofile service2 3). userprofile service3 4). userprofile service4 So how to use 2nd user-profile service. Here's some code, that I did: SPServiceContext oServiceContext = SPServiceContext.GetContext(SPServiceApplicationProxyGroup.Default, SPSiteSubscriptionIdentifier.Default);

One Datatables.net table with multiple ajax calls from Sharepoint 2010 REST API

隐身守侯 提交于 2020-01-11 07:27:08
问题 I am new here, so exuse me in advance for the lengthy question. I'm new to SP2010, and so far followed the following tutorial to make JQuery Ajax call to my SP List: Who Needs a Data View Web Part? SharePoint REST and DataTables.net My (and everybody's) problem is, that SP2010 listdata.svc returns only the first 1000 entries in the JSON. However the tutorial suggest a pre-filtering method to call for only the data the user would need, in my case, I would like to load all my 200+ entries to

How can I invoke a server-side event from jQuery (Sharepoint 2010)?

假装没事ソ 提交于 2020-01-06 23:52:05
问题 In my Sharepoint 2010 app, I'm handling most events client-side with jQuery. However, for the saving of data to the Sharepoint list, and the generation of a PDF file with that data, I want to handle that server-side, with C#. I tried to invoke a C# event this way: 0) Aded an HTML button in my project's *.ascx file: <button type="button" name="saveData" id="saveData">Save Data</button> 1) Added jQuery to respond to that button being clicked (in the same *.ascx file): $("#saveData").click

Sharepoint Pagetitle

南楼画角 提交于 2020-01-06 15:32:08
问题 Standard sharePoint just put "Page - some site" in the page title in the browsers, but I want to change that, but don't know how. I have succesfully created a webpart to do so, but I believe it's a major overkill creating a webpart to control such a small part of something as huge as SharePoint. So how can I control what the page title in best practice? Is a webpart reallly neccessary or can this goal be achieved in some other way? To specify some more: I don't want it to just have the same