JDBC Datalist Action ช่วยให้คุณสามารถดำเนินการ query SQL ในแหล่งข้อมูลปัจจุบันหรือที่กำหนดเองเป็นการดำเนินการของแถวและการดำเนินการเป็นกลุ่ม

นี่เป็นฟีเจอร์ใหม่ใน Joget Workflow v6


รูปที่ 1: ไฮเปอร์ลิงค์ในตัวยึดการดำเนินการของแถวและในตัวยึดการดำเนินการเป็นกลุ่มในตัวสร้างดาตาลิสต์


รูปที่ 2 : คุณสมบัติของ JDBC Datalist Action 


ชื่อคำอธิบาย
Labelชื่อลิงค์/ปุ่ม
Confirmation Messageข้อความยืนยันก่อนการดำเนินการ
Datasource
  • Custom Datasource
  • Default Datasource

โดยการเลือกแหล่งข้อมูลเริ่มต้นฐานข้อมูลที่ Joget ของคุณกำลังใช้งานอยู่จะถูกเลือก

Custom JDBC DriverCustom JDBC Driver. ฟิลด์นี้จำเป็นเมื่อเลือก Custom Datasource ใน Datasource ด้านบน
Custom JDBC URLCustom JDBC URL. ฟิลด์นี้จำเป็นเมื่อเลือก Custom Datasource ใน Datasource ด้านบน
Custom JDBC UsernameCustom JDBC Username. ฟิลด์นี้จำเป็นเมื่อเลือก Custom Datasource ใน Datasource ด้านบน
Custom JDBC Password

Custom JDBC Password. ฟิลด์นี้จำเป็นเมื่อเลือก Custom Datasource ใน Datasource ด้านบน

Click on the "Test Connection" button at the bottom of the page to quickly test out your configurations.

Query

Insert your SQL statement here. Use syntax like {id} in query to inject the selected row key.Use {uuid} to generate a unique id.

INSERT INTO app_fd_sample (id, c_clicked) VALUES ( {uuid}, {id} );
UPDATE app_fd_sample SET c_clicked = CONCAT(c_clicked, ',', {id}) WHERE id = '123';

The special parameters {id} and {uuid} will be replaced with actual values through the use of PreparedStatement.

As you can see from the example above, there is no need to encapsulate both of these special keywords with quotes.


Figure 3 : JDBC Datalist Action Properties - Visibility Control


NameDescription
RulesControls on when the action should appear based on the condition(s) set.