| Panel | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
The Javascript Condition Formatter allows you to transform column data based on user-defined conditions. ช่วยให้คุณสามารถแปลงข้อมูลคอลัมน์ตามเงื่อนไขที่ผู้ใช้กำหนดเอง |
| Panel | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
This is a new feature in นี่คือฟีเจอร์ใหม่ใน Joget Workflow v6. |
Figure รูปที่ 1: Javascript คุณสมบัติของ Javascript Condition Formatter PropertiesFormatter
| ชื่อ |
|---|
| คำอธิบาย |
|---|
| Conditions |
In short, when this rule is true, execute this formatting.
Every row in the datalist will be processed with these conditions respective to its current record id.
Use the {fieldName} prefix to retrieve column value, egในระยะสั้น เมื่อกฎนี้เป็นจริง ดำเนินการจัดรูปแบบนี้ ทุกแถวในดาตาลิสต์ จะถูกประมวลผลด้วยเงื่อนไขเหล่านี้ที่เกี่ยวข้องกับ Record ID ปัจจุบัน ใช้คำนำหน้า {fieldName} เพื่อเรียกค่าคอลัมน์เช่น: {userTelNumber} |
It is also possible to inject hash variables here.
Usage exampleนอกจากนี้ยังเป็นไปได้ที่จะเพิ่มตัวแปรแฮชที่นี่ ตัวอย่างการใช้งาน: |
ตัวอย่างผลลัพธ์: |
When there is a conflict/multiple match between conditions, the first matched condition will take precedence.
เมื่อมีการจับคู่ความขัดแย้ง/หลายอย่าง ระหว่างเงื่อนไข เงื่อนไขแรก ที่ตรงกันจะมีความสำคัญ |
ผลลัพธ์: |
...