sharepoint-2010

Updating EndDate causes “Invalid data has been used to update the list item”

淺唱寂寞╮ 提交于 2019-12-22 14:52:15
问题 Here is the full error: Invalid data has been used to update the list item. The field you are trying to update may be read only. I am basically try to update a Calendar Event in Sharepoint. First I get the following. ClientContext clientContext = new ClientContext(deptUrl); Web web = clientContext.Web; List list = web.Lists.GetByTitle(deptCal); clientContext.Load(list); CamlQuery query = new CamlQuery(); query.ViewXml = "<View><Query><Where><IsNull><FieldRef Name='EndDate' /></IsNull></Where>

Updating EndDate causes “Invalid data has been used to update the list item”

橙三吉。 提交于 2019-12-22 14:52:09
问题 Here is the full error: Invalid data has been used to update the list item. The field you are trying to update may be read only. I am basically try to update a Calendar Event in Sharepoint. First I get the following. ClientContext clientContext = new ClientContext(deptUrl); Web web = clientContext.Web; List list = web.Lists.GetByTitle(deptCal); clientContext.Load(list); CamlQuery query = new CamlQuery(); query.ViewXml = "<View><Query><Where><IsNull><FieldRef Name='EndDate' /></IsNull></Where>

SharePoint 2010 - Changing from Kerberos to Claims-Based Authentication

*爱你&永不变心* 提交于 2019-12-22 11:33:32
问题 I want to change the Authentication Provider from Kerberos to Claim-Based in my SharePoint 2010 Enterprise Edition environment. What problems can occur in my SharePoint environment? I heard that there are problems with the RSS Reader Webpart if the Webpart consumed a feed from my SharePoint. It will probably not be usable with Claim-Based Authentication. Are there other problems like this? 回答1: You mean that you want to change from classic authentication to claims-based authentication. Claims

Validate a Single line of text column type of list in sharepoint 2010 to accept only numbers?

自闭症网瘾萝莉.ら 提交于 2019-12-22 11:02:03
问题 How to validate a Single line of text column type of list in sharepoint 2010 to enter accept only numbers? Please don't tell me to use calculated column , I tried it and it didn't work for me as i want. Please advice, thanks in advance. 回答1: This should work: =ISNUMBER([MyColumn]+0) 回答2: Here is what seems to work for me (building on @Rob_Windsor; newlines added for readability): =AND( ISNUMBER(Number+0), ISERR(FIND(".",Number)), ISERR(FIND(",",Number)), ISERR(FIND("$",Number)), ISERR(FIND("+

ECMA script Error: The collection has not been initialized

坚强是说给别人听的谎言 提交于 2019-12-22 10:37:57
问题 I am getting this error while using querying a SharePoint list (2010) through JQuery The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. I am looping through all the options in html select element and querying SharePoint list. $("#IdeasStatus option").each(function() { statusCount = statusCount + 1; lstStatus.push($(this).val()); }); for (var i = 0; i < lstStatus.length; i++) { *****Some Code*********

Get current logged user in Sharepoint 2010

核能气质少年 提交于 2019-12-22 09:19:07
问题 I have a web part that shows me a survey. I need to get the current user so that I can hide or show certain information for the survey depending on the current user's permissions. 回答1: SPContext.Current.Web.CurrentUser should do the trick. It has functions like IsSiteAdmin and Groups that you should be able to use. 来源: https://stackoverflow.com/questions/11089400/get-current-logged-user-in-sharepoint-2010

Excel VBA - Open workbook in sharepoint fails until I log into sharepoint and access file

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 08:38:41
问题 EDIT 3/31/14 -- No responses...still baffled by this behavior. Bump! Any thoughts? I have set up some code in an Excel workbook on my local harddrive that navigates to a corporate sharepoint site, browses through a set of folders, and when it comes upon a file, it opens it and pulls some data down. I pieced a lot of it together from other posts and from a previous question I asked. Here is the issue I have. If I run it without first going into the Sharepoint site and opening a file, it throws

How to get all document libraries BUT Form Templates, Style, Customized Reports

对着背影说爱祢 提交于 2019-12-22 05:35:07
问题 I'm building a webpart for SharePoint 2010 to get all the document libraries with usefull info for the user. This means, docs that users uploaded, etc. I don't want to show libraries such as Form Templates, Style Library, Customized Reports, etc... I just want to show only the document libraries with usefull info, as Shared Documents, or any other users create in the future, is that possible? Currently, my logic looks like this: SPListCollection docLibraryColl = wb.GetListsOfType(SPBaseType

Create Word 2010 Document Programmatically

笑着哭i 提交于 2019-12-21 17:42:34
问题 Every week I produce a word document with some copy, tables and charts from various sources on our network. It can take a bit of time and sometimes I make mistakes or forget stuff that should go in. I want to automate this process as much as possible. So basically I want to make a Word Template or Console App that when I open/run it it goes off and collects all this stuff and links it into the various parts of the document. Assume I have to insert: Some copy from another Word document A PNG

Where's the code-behind for sharepoint aspx pages?

人盡茶涼 提交于 2019-12-21 16:52:02
问题 No doubt I'm missing something very obvious here - but I'm new to sharepoint so please bear with me. I've successfully added a master page, created a content type and have created an aspx page for my custom content type - but I can't find its cs file!? Is there another way in which code-behind is implemented in sharepoint solutions? It seems to be similar when creating controls. I'm used to standard asp .net c# web application development were all of the aspx pages come with the code-behind