简介
Data Service 包含系统内置字段(例如 ) 。创建新实体时,系统会自动创建一组默认字段,但您可以通过添加特定字段来自定义所定义的实体。
字段类型
可以创建以下字段类型的字段。
- Text: this field can be used to store a small amount of text.
- Number: this field can be used to store a number value. Number values can be positive or negative. You must specify the number of decimal places that you want to use.
- Yes/No: this field is used to choose between a Yesor No value.
- Date-Time: this field is used to store a value that contains a date and time. A date picker can be used to select a date and time.
- Relationship: this field is used to create a relation between two entities.
- Choice Set: this field is used to store a list of enumerated values from which one or more values can be selected.
- File: this field is used to store a file.
Each type of field requires different details that must be specified. Please check the specific page under Entity Field Types to find out more.
创建字段
要通过创建特定筛选器来自定义实体,请执行以下步骤:
-
在“实体”列表中,选择要为其添加字段的实体。系统将显示“字段”选项卡,其中包含为实体定义的字段的列表。
-
单击“新建字段”。
-
在“创建字段”面板中,在“显示名称”字段中输入字段的显示名称。
备注:“名称”字段将根据“显示名称”自动填充。如果需要,您可以更改“名称”字段。
-
使用下拉列表选择字段“类型”。
-
如果该字段必须具有值,则选中“必填”复选框。
-
单击“更多详细信息”以显示其他字段。
-
输入可用字段的值。必填字段标有星号。
-
单击“保存”。
新字段将显示在“字段”列表中。
更新字段
要更新已创建的字段,请执行以下步骤:
- 无法更新系统内置字段。
- 无法更改自定义字段的名称和类型。
-
在“字段”选项卡中,将鼠标指针悬停在要编辑的字段上。
-
单击与项目对应的“编辑字段”图标。该图标位于右侧。
-
系统将显示“编辑字段”面板。应用更新。
-
单击“保存”。
删除字段
要删除已创建的字段,请执行以下步骤:
无法删除系统内置字段。
-
在“字段”选项卡中,将鼠标指针悬停在要删除的字段上。
-
单击字段行末尾的“更多选项”菜单,然后选择“删除” 。
-
要激活删除按钮,请在删除字段对话框中输入字段的显示名称。
-
单击“删除”以确认操作。
启用或禁用基于角色的字段访问
“基于角色的字段访问”可用于限制数据访问。“基于角色的字段访问”只能为自定义字段启用,而不适用于系统内置字段。
After the Role based field access option is enabled for a field, the roles need to be updated to grant explicit permissions for users to access the field. See Manage access for more information.
标准角色将无法再访问已启用基于角色的字段访问的字段中的数据。如果用户需要访问这些数据,则需要为用户分配一个自定义角色,以向其授予访问字段中的数据的权限。
-
在“字段”选项卡中,将鼠标指针悬停在要启用(或禁用)基于角色的字段访问的字段上。
-
单击字段行末尾的“更多选项”菜单,然后从菜单中选择“启用基于角色的字段访问” (或“禁用基于角色的字段访问”)选项。
-
单击“启用”(或“禁用”)以确认操作。
系统会显示确认消息。请参见下图。
重要提示:为某个字段启用基于角色的字段访问时,分配了不提供字段级别权限的现有角色的所有用户将无法再访问该字段中的数据。
-
单击“管理角色”,以打开“用户管理”页面的“角色”选项卡。在这里,您可以更新自定义角色,以授予字段访问权限。