To show data from a process instance (e.g., list record) in a form, you must first create a Form where you want to show the data in. 

You must also create a Datalist that will be shown in your userview and add the Datalist element to the userview.

Once you have created the form, you must add the form element into the userview. Be sure to set the 'Custom ID' property which will be part of the hyperlink used to view the data from within the form. 

图1:在Userview中创建新的表单元素

完成表单元素的创建后,您将需要在Datalist中创建一个将在Userview中显示的超链接。

在Datalist Builder中,在您的设计中添加超链接操作。

图2:添加 超链接操作

在“配置超链接”操作中,“超链接”属性应该指向表单的路径,在将表单元素添加到用户视图时,由上面设置的“自定义ID”属性指示。请务必将“超链接参数名称”和“列名称”属性指定为“ID”。

图3:配置超链接操作

使用上面的配置,将会得到一个结果URL路径的例子

http://localhost:8080/jw/web/userview/leaveApp/userview//applicationForm?id=21162_leaveApp_applyLeaveProcess

其使用格式超级链接hyperlink/hyperlinkParameterName/columnNameValue

在发布应用程序并单击用户视图中的数据列表之后,您应该会看到一个带有超链接的新列以打开表单中的数据。

图4:列表示例

点击“打开”超链接将以您创建的形式打开流程实例(列表记录)数据。


图5:通过链接打开表单

  • No labels