sharepoint

Calculated SharePoint Column

不打扰是莪最后的温柔 提交于 2020-01-16 18:44:40
问题 I have a simple calculated column in my SharePoint 2010 list. It takes the list item ID, adds 100 to it. When my users are creating items in the list, the calculated column does not get updated unless I go in, edit the column (do nothing) and save it. It, in fact, gives all items a value of 101 unless I manually edit the column. Is this typical or is there a work around for this issue? Thank you! 回答1: It is not possible to create calculated column based on ID value. The Id of the item is

Inheriting list item permissions via permissions on lookup field item

点点圈 提交于 2020-01-16 18:30:16
问题 Say you have two lists in Sharepoint, let's call them "house" and "region". Each house is assigned to a region via a lookup field. List item permissions are set on regions. Now I want the users only to only see the houses which belong to the regions they have read access to. I reckon it should be relatively simple I see no easy way of doing this. Am I over looking something. 回答1: If you want an automated process that occurs when a new house is added, then there's a simple enough method for

Set value for Multiple Lookup list in sharepoint in C#

陌路散爱 提交于 2020-01-16 18:18:28
问题 I try to set the sharepoint list items and update lists, right now the sharepoint list is a lookup with multiple value I call POST /sites/{}/lists/{list_guid}/items/{item_id}/fields with Json { "MyListLookUpValue":[ "LookupId":1, "LookupValue":"My name", "Email":"my@email.se", ] } (This isn't the code i use, but a representation) I have found that i should specify the type but the thing is that i dont know the typ if it would be a list of Strings i could add "MyListLookUpValue@odata.type":

Extending or modifying the SharePoint Datasheet view

我只是一个虾纸丫 提交于 2020-01-16 18:06:26
问题 Has anyone discovered a way to extend or modify the functionality of the SharePoint Datasheet view (the view used when you edit a list in Datasheet mode, the one that looks like a basic Excel worksheet)? I need to do several things to it, if possible, but I have yet to find a decent non-hackish way to change any functionality in it. EDIT: An example of what I wish to do is to enable cascading filtering on lookup fields - so a choice in one field limits the available choices in another. There

XMLHttpRequest fails reading XML InfoPath form due to mso-application line

与世无争的帅哥 提交于 2020-01-16 18:01:27
问题 I'm trying to create an ASPX page on my SharePoint site to read existing InfoPath forms. Testing locally with JavaScript and XMLHttpRequest worked fine but when the page is uploaded to SharePoint something very odd happens if the XML file has a specific line of data in it. When testing with simple XML files this line causes a problem: <?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.4"?> When present in the XML file I'm trying to read, something odd happens.

XMLHttpRequest fails reading XML InfoPath form due to mso-application line

二次信任 提交于 2020-01-16 18:00:47
问题 I'm trying to create an ASPX page on my SharePoint site to read existing InfoPath forms. Testing locally with JavaScript and XMLHttpRequest worked fine but when the page is uploaded to SharePoint something very odd happens if the XML file has a specific line of data in it. When testing with simple XML files this line causes a problem: <?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.4"?> When present in the XML file I'm trying to read, something odd happens.

Upload file to sharepoint with httpclient

那年仲夏 提交于 2020-01-16 17:02:08
问题 I am trying to upload file to sharepoint server 2013 from code with HttpClient or some other way. ( I don't want to use the "Microsoft.SharePoint.Client" dll) because there are some issues with this dll with large files. my HttpClient code looks like: public async Task UploadAsync(string filePath) { string sharePointUrl = "http://codey-sharepoint/sites/codysite"; string folderUrl = "/Documents"; string fileNameNotFullPAth = System.IO.Path.GetFileName(filePath); var offset = 0L; var

How can I update/merge Web.MembersCanShare property-value from the Sharepoint REST API

喜你入骨 提交于 2020-01-16 08:38:10
问题 GET https://microsoft.sharepoint.com/****/_api/Web/MembersCanShare returns 'true' 200 OK <?xml version="1.0" encoding="utf-8"?> <d:MembersCanShare xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" m:type="Edm.Boolean"> true </d:MembersCanShare> then request to update to 'false' POST https://microsoft.sharepoint.com/****/_api

Download a file from sharepoint

房东的猫 提交于 2020-01-16 06:58:42
问题 I am trying to download a file from sharepoint, I have this code and throw error code 500. static void DownloadFile(){ string serverFilePath = "Here goes my URL, that open the file from any tab"; var password = new SecureString(); foreach (char c in Configuration.password) { password.AppendChar(c); } // theese are the credentials and work fine because I tested in another method var o365credentials = new SharePointOnlineCredentials(Configuration.userName, password); var url = string.Format("{0

SharePoint 2013 配置Excel Services

情到浓时终转凉″ 提交于 2020-01-15 12:21:07
原文: SharePoint 2013 配置Excel Services   前言:本文主要介绍如何启用SharePoint 2013版本Excel Services服务,并配置Excel Web Access部件,使Excel文档可以显示在Web页面中。   简单说一下流程,SharePoint 的Excel Services依赖于一个独立的服务应用程序,如果没有的话,需要在管理中心创建这个服务应用程序(类似搜索),然后开启相关服务,即在服务器场可以使用Excel Service服务。相关网站如果需要使用Excel Services的服务,需要开启该网站的网站集功能和网站功能。   以上是介绍和简单流程,下面开始图解配置过程,如有勘误,欢迎指教。 1、打开管理中心,进入 - 管理服务器上的服务; 2、启动Excel Calculation Services服务 3、回到管理中心首页,进入 - 管理服务应用程序 4、如果没有Excel Services应用程序,点击 - 新建,选择 - Excel Services应用程序; 5、进入新建Excel Services应用程序界面,填写名称、选择应用程序池、配置账户; 6、Excel Services应用程序创建完成,可以在服务应用程序里看到了; 7、点击新建的 - Excel Services应用程序,进入 – 管理Excel