Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
titleDefinition

JDBC Options Binder allows you to retrieve form options from Joget or custom database via user-defined SQL statements. ช่วยให้คุณสามารถดึงตัวเลือกแบบฟอร์มจาก Joget หรือฐานข้อมูลที่กำหนดเองผ่านคำสั่ง SQL ที่ผู้ใช้งานกำหนด

Panel
borderColorpurple
borderWidth1
titleBGColor#ddccff
borderStylesolid
titleNew Feature
This is a new feature in Joget Workflow v6.
นี่เป็นคุณสมบัติใหม่ใน Joget Workflow เวอร์ชั่น 6

 

Figure ภาพที่ 1: JDBC Options Binder Propertiesคุณสมบัติตัวเลือกแบบ JDBC 

NameDescription
Datasource
  • Custom Datasource
  • Default Datasource
By selecting Default Datasource, the database your Joget is currently using will be selected.
โดยการเลือกแหล่งข้อมูลเริ่มต้นฐานข้อมูลที่ Joget ของคุณกำลังใช้งานอยู่
Custom JDBC Driver

Custom JDBC Driver. This field is required when Custom Datasource is selected in Datasource above.ไดร์เวอร์ JDBC แบบกำหนดเอง ฟิลด์นี้จำเป็นเมื่อเลือก Custom Datasource ใน Datasource ด้านบน

Custom JDBC URL 
Custom JDBC URL. This field is required when Custom Datasource is selected in Datasource above.
URL JDBC ที่กำหนดเอง ฟิลด์นี้จำเป็นเมื่อเลือก Custom Datasource ใน Datasource ด้านบน
Custom JDBC Username 
Custom JDBC Username. This field is required when Custom Datasource is selected in Datasource above.
ชื่อผู้ใช้ JDBC ที่กำหนดเอง ฟิลด์นี้จำเป็นเมื่อเลือก Custom Datasource ใน Datasource ด้านบน
Custom JDBC Password

Custom JDBC Password. This field is required when Custom Datasource is selected in Datasource above.รหัสผ่าน JDBC ที่กำหนดเอง ฟิลด์นี้จำเป็นเมื่อเลือก Custom Datasource ใน Datasource ด้านบน

Info
titleTest the connection parameters

Click on the คลิกที่ปุ่ม "ทดสอบการเชื่อมต่อ(Test Connection" button at the bottom of the page to quickly test out your configurations.)" ที่ด้านล่างของหน้าเพื่อทดสอบการกำหนดค่าของคุณ

Use AJAX for cascade options?

When checked, this allows these fields to dynamically load available options based on the other field value (grouping column) when dealing with tremendous amount of selections.

Read more at เมื่อเลือกตัวเลือกนี้จะทำให้ฟิลด์เหล่านี้โหลดตัวเลือกที่มีอยู่แบบไดนามิกโดยยึดตามค่าฟิลด์อื่น (คอลัมน์การจัดกลุ่ม) เมื่อจัดการกับการเลือกจำนวนมหาศาล อ่านเพิ่มเติมได้ที่ Ajax Cascading Drop-Down List. 

Info
titleImportant

Do not forget to configure the dependency field in อย่าลืมกำหนดค่าฟิลด์ใน Field ID to control available oiptiosn based on Grouping in the next tab. เพื่อควบคุมตัวเลือกที่มีตามการจัดกลุ่มในแท็บถัดไป

Info
titleImportant

Use question mark ใช้เครื่องหมายคำถาม (?) in yourใน SQL SELECT Query to represent dependency values.ของคุณเพื่อแสดงค่าที่พึ่งพา

Add Empty OptionIf checked, an empty option will be added to the selections.
หากทำเครื่องหมาย ตัวเลือกที่ว่างเปล่าจะถูกเพิ่มเข้าไปในเงื่อนไข
Empty Option LabelEmpty option label. Only in use when Add Empty Option is checked.
ป้ายกำกับตัวเลือก Add Empty Option ใช้งานได้เฉพาะเมื่อมีการเลือก Add Empty Option
SQL SELECT Query

To populate a selectbox, for example, you need to return at least 2 columns. The first column is used for value/ID. The second column is used for label. An optional third column can be returned for grouping value.ในการเติมข้อมูล selectbox ตัวอย่างเช่นคุณต้องส่งคืนคอลัมน์อย่างน้อย 2 คอลัมน์ คอลัมน์แรกใช้สำหรับค่า / ID คอลัมน์ที่สองใช้สำหรับป้ายกำกับ คอลัมน์ที่สามที่เป็นทางเลือกให้สามารถส่งคืนสำหรับค่าการจัดกลุ่ม

Code Block
languagesql
titleExample
linenumberstrue
SELECT username, CONCAT(lastName, ' ', firstName) FROM dir_user

 

When เมื่อใช้ Use AJAX for cascade options?is checked, make sure that a question mark is placed within the query. ตรวจสอบให้แน่ใจว่ามีเครื่องหมายคำถามอยู่ในคิวรี่

Code Block
languagesql
titleExample
linenumberstrue
SELECT username, CONCAT(lastName, ' ', firstName) FROM dir_user WHERE timeZone = (?)

...