如何将SharePoint列设置为只读 [英] How to set the SharePoint columns as read only

查看:566
本文介绍了如何将SharePoint列设置为只读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,

Hello Everyone,

我有一个文档集库。在那里我有几个不同数据类型的列ex:托管元数据列,单行文本,日期,选择字段等。我希望用户不要编辑现有项目,我想将字段设置为只读,留下两个
列可编辑。

I have a document set library. In That i have few columns with different datatypes ex: managed metadata columns, single line of text, date, choice fields etc. I want users not to edit the existing items, i want to set the fields as read only leaving two columns as editable.

Mike

推荐答案

嗨Mike,

您可以使用以下文章脚本将列更改为只读。

You could use the below article script to change the columns to read only.

http://www.sharepointdiary.com/2013/07/how-to-make-sharepoint-list-column-form -field-read-only.html

如果你想要多个字段,你也可以使用下面的脚本。

if you want for multiple fields you could use the below script as well.

# ###############开始####################

################ Start ####################

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Get the web

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
#Get the Web


spweb = Get-SPWeb http://portal.globalsp.com/ site / GlobalSP

#获取列表
spweb = Get-SPWeb http://portal.globalsp.com/site/GlobalSP
#Get the List


list =


这篇关于如何将SharePoint列设置为只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆