简体   繁体   English

SharePoint只读字段对于记录中心规则不可见

[英]SharePoint read-only field not visible for Records Center rules

I am using SharePoint 2010 and I have developed a SharePoint 2010 solution which creates a new content type. 我正在使用SharePoint 2010,并且已经开发了可创建新内容类型的SharePoint 2010解决方案。 One of the new columns in that content type should not be visible in Add New and Edit forms, ie: 该内容类型中的新列之一在“ 添加新内容”和“ 编辑”表单中不应可见,即:

<Field ID="{4E887808-B3CF-421D-AFAF-4E6A60A6890E}"
       Name="DocumentStatus"
       DisplayName="Document Status"
       Type="Text"
       ShowInNewForm="FALSE"
       ShowInEditForm="FALSE"
       Group="Custom Columns" />

The same content type is used for one Records Center rule. 一个记录中心规则使用相同的内容类型。 The rule specifies that once the Document Status field equals "Completed" , the document should be moved to a particular Records Center document library. 该规则指定,一旦“ Document Status字段等于"Completed" ,则应将文档移至特定的记录中心文档库。

However, being that the Document Status field has the properties ShowInNewForm and ShowInEditForm set to true, I cannot see and pick the field from the list of content type columns while defining the rule. 但是,由于“ Document Status字段的属性ShowInNewFormShowInEditForm设置为true,因此在定义规则时,无法从内容类型列的列表中查看和选择该字段。

Does anyone know how to make the field non-editable but still to be able to use it in the Records Center rules? 有谁知道如何使该字段不可编辑,但仍然能够在记录中心规则中使用它? My guess is that some other field properties need to be set for the field definition, but I am stuck. 我的猜测是,还需要为字段定义设置一些其他字段属性,但是我被困住了。 Please help! 请帮忙! Thank you. 谢谢。

http://msdn.microsoft.com/en-us/library/ee558288.aspx quote: "Available columns are always constrained to all non-hidden columns on the rule's content type" . http://msdn.microsoft.com/zh-cn/library/ee558288.aspx引用:“可用列始终限于规则内容类型上的所有非隐藏列”。 I suppose you could not use a column not displayed in new/edit form in rules definitions. 我想您不能在规则定义中使用未以new / edit形式显示的列。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM