You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

使用CRUD,在构建一个CRUD实体时,不需要做所有的手工布线。这个元素为你提供了大量的定制,确保你可以达到你想要的。

图1:截屏显示从人力资源开支申报应用程序中抽取的CRUD

Joget Workflow v5有什么新功能

在Joget Workflow v5中,删除功能现在可以删除依赖关系数据。

图2:CRUD属性

名称描述
自定义ID

物品链接slu </s>。可选字段。

独特的领域

在这里定义的值必须是唯一的用户视图菜单的其余部分,因为第一个匹配的名称将被调用。

标签菜单标签。必填项。
名单Datalist加载。必填项。
表格(添加)

添加新记录时打开目标表单。可选字段。

如果此属性未映射,则“添加”功能将被禁用。

表格(编辑)

目标表单在编辑现有记录时打开。可选字段。

如果此属性未映射,则“编辑”功能将被禁用。

图3:CRUD属性 - UI(列表)

名称
描述
在菜单中显示行数
在菜单中显示行数。

 

性能警告

每次用户视图加载时,将执行额外的查询以返回记录计数。

按钮位置
  • 左上方
  • 右上
  • 左下方
  • 底部右侧
  • 左上角和左下角
  • 右上角和右下角
选择类型
选择器位置
  • 剩下
  • 都让和正确
  • 没有
编辑链接标签
编辑链接标签显示在列表中。
新记录按钮标签
新记录按钮标签显示在列表中。
删除按钮标签
删除按钮标签显示在列表中。
显示删除按钮?
选中时,将显示删除按钮,有效启用删除功能。
自定义标题
HTML中的自定义标题显示在列表中。
自定义页脚HTML中的自定义页脚显示在列表中。


图4:CRUD属性 - 动作(列表)

名称
描述
更多操作

该属性允许您在列表中添加更多操作。

名称
描述
标签链接标签。
超链接超链接网址。
参数名称参数名称是超链接的一部分。
列名称通过定义数据列表中的列名来分配给上面声明的参数名的参数值。
确认消息打开链接前的确认信息。

例如


Figure 5: CRUD Properties - UI (Add)

NameDescription
Cancel Button LabelCancel Button Label to show in add new record form.
Save Button LabelSave Button Label to show in add new record form.
Custom HeaderCustom Header in HTML to show in add new record form.
Custom FooterCustom Footer in HTML to show in add new record form.

Figure 6: CRUD Properties - Actions (Add)

NameDescription
Message to show after Form saved
Message to show after Form saved.
Action to perform after Form saved
  • Return to list
  • Continue on Adding Record
  • Display in Edit Mode
  • Redirection
After Form Saved - Redirection (Hyperlink)

Hyperlink URL.

This option is only active when "Action to perform after Form saved" is set to "Redirection".

Example
userviewFormLink
After Form Saved - Redirection (Parameter Name)

Parameter to be appended as part of the link defined above.

Example
id
After Form Saved - Redirection (Field Name)

Value to be assigned to the parameter defined above.

Example
id

Figure 7: CRUD Properties - UI (Edit)

NameDescription
ReadonlyIf checked, effectively, the form will be rendered as read only and not editable anymore.
Display Fields as Labels when in Readonly?
When the form is in read only form, determines if values should be displayed as it is (label form) instead of being bounded in original input form.
Back Button Label

Back Button Label

Default value: Back

Save Button Label
Save Button Label
Default value: Save
Record Traversing

Enable record traversing when viewing a individual record in its form.

First Record Button Label
First Record Button Label.
Only applicable when Record Traversing is enabled.
Default value: First Record
Previous Record Button Label
Previous Record Button Label.
Only applicable when Record Traversing is enabled.
Default value: Previous Record
Next Record Button Label
Next Record Button Label.
Only applicable when Record Traversing is enabled.
Default value: Next Record
Last Record Button Label
Last Record Button Label.
Only applicable when Record Traversing is enabled.
Default value: Last Record
Custom HeaderCustom Header in HTML to show when editing an individual record in a form.
Custom FooterCustom Footer in HTML to show when editing an individual record in a form. 

Figure 8: CRUD Properties - Actions (Edit)

NameDescription
Message to show after Form savedMessage to show after Form is saved

Action to perform after Form saved

  • Return to list
  • Continue on edit record
  • Continue on edit next record
  • Redirection
After Form Saved - Redirection (Hyperlink)
URL to redirect to after submission. Only applicable when Action to perform after Form saved is set to Redirection.
After Form Saved - Redirection (Parameter Name)
Parameter to be included. Only applicable when Action to perform after Form saved is set to Redirection.
After Form Saved - Redirection (Field Name)
Parameter value to be assigned to the parameter above by defining a field ID from the form. Only applicable when Action to perform after Form saved is set to Redirection.
More Actions

Include action buttons to be added into the bottom of the form.

NameDescription
Label

Action button label.

Example: New Action Button

HyperlinkURL
Parameter NameParameter name to be added to the URL defined above.
Field NameField ID correspondent to the form to retrieve value from and set to the parameter above.
Confirmation MessageConfirmation message to prompt before proceeding after clicking on the button.

Example:

When such button is clicked, the form will not be saved.

Figure 9: CRUD Properties - Advanced

NameDescription
Userview Key NameDefine a column name to pre-filter the datalist against using the userview key value.

Screenshots taken from http://localhost:8080/jw/web/console/app/hr_expense/1/userview/builder/hr_expense_userview

Performance

You can configure the Performance settings in this Userview Element which allows one to cache existing content for improved performance and loading speed. Read more at Performance Improvement with Userview Caching.

  • No labels