Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
"Submit Sample" is a "Run Process" element and "Manage Sample" is a "CRUD" element. We can combine the ability to "Run Process" into CRUD's add button.
First of all, obtain the "Custom ID" / Link ID or the "Run Process" element as shown in the figure above.
“提交样本”是“运行过程”元素,“管理样本”是“CRUD”元素。我们可以将“运行流程”的功能组合到CRUD的添加按钮中。有了这个,我们可以隐藏“样本批准过程”类别。
首先,获取“Custom ID”/ Link ID或“Run Process”元素,如上图所示。
然后,将以下脚本插入CRUD的“自定义页脚”。Then, insert the following script into the "Custom Footer" of the CRUD.
Code Block |
---|
$("button[value='CRUD_New']").click( function(event){ event.preventDefault(); window.location.href = "sample_submit_process"; //replace the value with the custom ID of Run Process }); |
By doing so, we have remove the default capability of "Add Record" in CRUD and points it to "Run Process".通过这样做,我们删除了CRUD中“添加记录”的默认功能,并将其指向“运行过程”。