当前位置:主页 > Office办公 > 其他专区

最新发布

SharePoint Online 如何创建和使用视图
SharePoint Online 如何创建和使用视图

首先,解释一下什么是SharePoint站点视图,所谓视图,就是列表的一个呈现形式,包含特定的栏、排序、筛选、分组等特性,我们通常创建视图用来展示特定范围和显示方式的数据。  通过登录地址登录到Office 365的SharePoint Online站点中,我们可以在右上角的设置菜单中,选择添加应用程序;  选择自定义列表,我们使用列表来演示如何使用视图,当然,视图不仅仅可以应用在列表中,还可以应用在文档库、图片库等库中;  列表的名称叫做测试视图,点击创建即可创建列表;  创建完毕列表,我们需要创建几个栏,用来测试视图;  点击Ribbon菜单上黄色背景的创建栏,即可创建栏;

299 次浏览
SPClaimsUtility.AuthenticateFormsUser 方法的一个小问题
SPClaimsUtility.AuthenticateFormsUser 方法的一个小问题

最近,开启了Form认证,发现Form账号前面加空格,或者后面加空格都可以登录站点,但是提示未共享。  解决方法  后来bing了很多帖子,发现大家都遇到过类似的问题,问题是由于SPClaimsUtility.AuthenticateFormsUser的方法有个小bug,也就是用户登录名前后有空格,这个方法里并没有trim掉空格,但是做验证的时候,却能通过,同时把用户会话给了带空格用户名的用户,所以当前登录的用户对站点并没有权限,也没有办法加权限。  后来,我们合计了一下,就在用户登录之前,把用户名Trim掉空格,规避一些这个问题。

288 次浏览
SharePoint 如何设置客户端上传文件大小
SharePoint 如何设置客户端上传文件大小

in sharepoint 2013, 2016 , there is a limitatoin on the size of the uploading files , default size for uploading documents through CSOM is 2 MB, but you can overcome this limitation by using the following PS script to set a higher limit $ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 10485769 $ws.ClientRequestServiceSettings.MaxParseMessageSize = 10485769 $ws.Update()Note : stop sharepoint timer service before executing above script

SharePoint Online 如何切换经典视图
SharePoint Online 如何切换经典视图

SharePoint online 默认是现代视图,我们可以通过Powershell命令切换默认视图。  以下,是完成的Powershell命令: 复制代码 # This file uses CSOM. Replace the paths below with the path to CSOM on this computer. # If CSOM is in the user's downloads folder, you only have to replace the <username> placeholder.Add-Type -Path "C:\Users\<username>\downloads\Microsoft.SharePointOnline.CSOM.16.1.5026.1200\lib\net45\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Users\<username>\downloads\Microsoft.SharePointOnline.CSOM.16.1.5026.1200\lib\net45\Microsoft.SharePoint.Client.Runtime.dll"# All strings in braces < >are placeholders that you must replace with the appropriate strings.$webUrl = 'https://<domain>.sharepoint.com/<relative-path-to-website>' $username = '<username>@<domain>.onmicrosoft.com' $password = Read-Host -Prompt "Password for $username" -AsSecureString[Microsoft.SharePoint.Client.ClientContext]$clientContext = New-Object Microsoft.SharePoint.Client.ClientContext($webUrl) $clientContext.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password) $site = $clientContext.Site; $customActions = $site.UserCustomActions $clientContext.Load($customActions) $clientContext.ExecuteQuery()$first = $true foreach($customAction in $customActions) { if($customAction.Location -eq "scriptlink" -and -Not ([string]::IsNullOrEmpty($customAction.ScriptBlock))) { if ($first) { Echo " " Echo ($webUrl + " has the following inline JavaScript custom actions") $first = $false } Echo $customAction.Title } }复制代码  如果保存ps1文件,请注意

298 次浏览
SharePoint Designer 配置工作流后需要重启的问题
SharePoint Designer 配置工作流后需要重启的问题

最近,很多朋友配置SharePoint工作流以后,用SharePoint Designer打开站点,创建SharePoint 2013 工作流的时候,都会报一个错误。  查了很多帖子,发现是个Designer的bug,安装Designer sp1补丁以后,还需要一个补丁才可以解决问题。  问题描述  服务器端活动已更新。要使用活动的更新版本,您需要重新启动SharePoint设计器。  Server-side activities have been updated. You need to restart SharePoint Designer to use the updated version of activities.  问题截图    补丁链接  https://support.microsoft.com/en-us/help/3114337/january-12--2016--update-for-sharepoint-designer-2013-kb3114337

302 次浏览
SharePoint 应用程序页匿名
SharePoint 应用程序页匿名

最近,有朋友问开发应用程序页,都是需要先登录再访问,无法开发匿名的应用程序页。  解决方法  其实,SharePoint帮我们提供了匿名访问的应用程序页的方法,只是和普通应用程序页继承的基类不一样,简单的改一下就可以了。  默认,我们都集成自LayoutsPageBase,我们只需要改一下继承自UnsecuredLayoutsPageBase即可;public partial class ApplicationPage1 : UnsecuredLayoutsPageBase { protected void Page_Load(object sender, EventArgs e) { } }  总结  很简单吧,记录一下,分享给大家。详细的介绍,还可以看看msdn的文档介绍。  MSDN 文档介绍:https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.unsecuredlayoutspagebase.aspx

274 次浏览
SharePoint 列表视图修改多行文本字段显示长度
SharePoint 列表视图修改多行文本字段显示长度

最近有这么个需求,用户希望在所有项目视图显示多行文本字段,然后,又不希望显示的过场,也就是处理一下长度。  一开始就想到用js的方式去处理,偶然间发现还可以用jslink,尝试了一下,非常好用,分享给大家。  完整代码// List View - Substring Long String Sample // Muawiyah Shannak , @MuShannak (function () { // Create object that have the context information about the field that we want to change it's output render var bodyFiledContext = {}; bodyFiledContext.Templates = {}; bodyFiledContext.Templates.Fields = { // Apply the new rendering for Body field on list view "Body": { "View": bodyFiledTemplate } }; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(bodyFiledContext); })(); // This function provides the rendering logic function bodyFiledTemplate(ctx) { var bodyValue = ctx.CurrentItem[ctx.CurrentFieldSchema.Name]; //This regex expression use to delete html tags from the Body field var regex = /(<([^>]+)>)/ig; bodyValue = bodyValue.replace(regex, ""); var newBodyValue = bodyValue; if (bodyValue && bodyValue.length >= 100) { newBodyValue = bodyValue.substring(0, 100) + " ..."; } return "<span title='" + bodyValue + "'>" + newBodyValue + "</span>"; }   后来,用户又希望鼠标点击缩略文档的时候,能显示所有内容,天啊,满足客户需求,毕竟,客户就是上帝!!!  简单的改了一下默认脚本的return的值,如下:return "<div onclick='changeShow(this)'><span style='display:none;'>" + bodyValue + "</span><span style='display:block;'>" + newBodyValue + "</span></div>"; 然后,再加一个切换效果的脚本,如下:function changeShow(obj) { var spans = $(obj).find("span"); if(spans[0].style.display == "none") { spans[0].style.display = "block"; spans[1].style.display = "none"; } else { spans[0].style.display = "none"; spans[1].style.display = "block"; } }   这样,就满足用户单击可以切换缩略文本和完整文本的功了。  运行效果

294 次浏览
SharePoint Set-SPUser 命令拒绝访问 问题解决
SharePoint Set-SPUser 命令拒绝访问 问题解决

最近碰到一个问题,由于User Profile Service服务有问题,用户信息无法更新。所以,想到Set-SPUser命令可以更新,于是乎找到这个命令,但是更新的时候发现拒绝访问的错误。找了很久原因,发现需要设置一下权限,不知道是否还会有人遇到类似的问题,记录一下分享给大家。  参考链接可能需要*,如果无法访问的同学了解一下。· Solution:  Add a web application user policy with Full control for the Farm Administrator who runs the Script! 

285 次浏览
sharepoint 网站集解锁
sharepoint 网站集解锁

最近碰到这样的一个问题,就是SharePoint 站点备份(Backup-SPSite)的时候,速度特别慢,然后网站变成只读状态(备份过程中只读属于正常现象)。但是,自己手欠把备份命令的PowerShell窗口关掉了,也就是说备份的过程中断了,这样,站点就一直只读状态了,所以需要手动解锁。  自己搜了很多资料,发现有两种方式,碰到类似问题的可以尝试一下。  方法一  Set-SPSite -Identity "http://localhost:10086" -LockState Unlock  当然,这个Unlock的状态属性,还有几个其他参数,大家也可以了解一下:  Unlock:解除网站集锁定,并使其可供用户使用。   NoAdditions:禁止用户向网站集添加新内容。仍然允许更新和删除操作。   ReadOnly:禁止用户添加、更新或删除内容。   NoAccess:禁止用户访问网站集及其内容。尝试访问网站的用户会收到错误消息。  尝试了一下这个命令,但是发现这种中断备份的只读状态,这个命令是无法解除只读的。但是,如果站点不想让其他人修改了,可以用这个命令设置网站集状态。  然后,就是方法二了$Admin=New-Object Microsoft.SharePoint.Administration.SPSiteAdministration('http://localhost:10086') $Admin.ClearMaintenanceMode() $Site.MaintenanceMode  用了这个命令行以后,发现站点解除只读状态成功了。

294 次浏览
How to Limit NodeRunner.exe High Memory, CPU Usage
How to Limit NodeRunner.exe High Memory, CPU Usage

roblem: NodeRunner.exe is consuming a lot of memory and CPU resulted in performance issues on SharePoint 2013 server.Solution: NodeRunner.exe is a SharePoint 2013 Search service component and it is resource hungry. To reduce the CPU and Memory impact of this process, follow below steps:Step 1: Reduce the CPU impact of the search service By default SharePoint search uses "maximum" to speed up its search crawling process. To reduce the CPU usage of the search service, run this PowerShell script from any one of your SharePoint 2013 server:Set-SPEnterpriseSearchService -PerformanceLevel Reduced This sets Search Service Application crawl component to use less number of threads.Step 2: Limit the NodeRunner.exe's Memory usage: Step 3: Restart Search Service For the above steps to take effect, You have to restart SharePoint 2013 search service. Go to Services console, restart SharePoint Search Host Controller process. Or use the PowerShell cmdlet to restart Search host controller process:Restart-Service SPSearchHostController The downside of the above changes: Since you are restricting resources to SharePoint search service, it increases search crawl time! PowerShell to Set NodeRunner config:

324 次浏览
共计17238条记录 上一页 1.. 1643 1644 1645 1646 1647 1648 1649 ..1724 下一页