Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Multiselect in Grid Interface (New)

Thai

เลือกได้หลายแบบในส่วนต่อประสานกริด (ใหม่)

Panel
borderColorpurple
borderWidth1
titleBGColor#ddccff
borderStylesolid
titleNew Feature

This is a new feature in Joget DX.

Thai

นี่เป็นคุณสมบัติใหม่ใน Joget DX

Image Removed

Repeater

Image Added

  • type : 'Repeater'

  • fields : A JSON array of 'fields' JSON objects which can support any properties field types and its attributes. 


  • Refer to Field Types for the attributes of the fields.

    Code Block
    languagejs
    fields : [
        {name : 'value', label : 'Value', required: 'true', type: 'checkbox'},
        {name : 'label', label : 'Label', required: 'true', type: 'textfield'}
    ]


  • Refer to Dependency Field Attributes for extra attributes to do show/hide this field based on other field value.

    Thai

    อ้างถึง Dependency Field Attributes สำหรับแอททริบิวพิเศษที่ต้องแสดง / ซ่อนฟิลด์นี้ตามค่าฟิลด์อื่น

  • Refer to Retrieve Properties Value in Plugin - Repeater Field on how to use the value of this field type in the plugin code.

    Thai

    อ้างอิงถึง Retrieve Properties Value in Plugin - Repeater Field เกี่ยวกับวิธีใช้ค่าของฟิลด์ชนิดนี้ในรหัสปลั๊กอิน

Multiselect in Grid Interface (New)

Thai

เลือกได้หลายแบบในส่วนต่อประสานกริด (ใหม่)

Panel
borderColorpurple
borderWidth1
titleBGColor#ddccff
borderStylesolid
titleNew Feature

This is a new feature in Joget DX.

Thai

นี่เป็นคุณสมบัติใหม่ใน Joget DX

Image Added

...

  • Page button can be added on the bottom of each page to provide extra feature. Such as send an test email to test the email configuration or make a test connection to database.

    Thai

    สามารถเพิ่มปุ่มหน้าได้ที่ด้านล่างของแต่ละหน้าเพื่อให้มีคุณสมบัติพิเศษ เช่นส่งอีเมลทดสอบเพื่อทดสอบการกำหนดค่าอีเมลหรือทำการเชื่อมต่อทดสอบกับฐานข้อมูล

  • Page button will collect the required fields data from the page and popup dialog and call an AJAX URL. 

    Thai

    ปุ่มหน้าจะรวบรวมข้อมูลฟิลด์ที่ต้องการจากหน้าและกล่องโต้ตอบป๊อปอัพและเรียก AJAX URL

  • name : Identifier of this button.

  • label : Label of the button.

  • ajax_url : A URL to execute the button action. The URL should return a JSON Object with message (String) attribute.

  • fields : An array of fields name in the same page that will be used by this button. 

  • addition_fields :  An array of Property Field JSON object that will be shown in a popup dialog to collect extra data.

  • Example:

    Thai

    ตัวอย่าง:

    Code Block
    languagejs
    buttons : [{
        name : 'testmail',    
        label : 'Send Test Email',
        ajax_url : '[CONTEXT_PATH]/web/json/app[APP_PATH]/plugin/org.joget.apps.app.lib.EmailTool/service?action=testmail',
        fields : ['host', 'port', 'security', 'username', 'password'],
        addition_fields : [
            {
                name : 'from',
                label : 'From',
                type : 'textfield',
                required : 'True'
            },
            {
                name : 'toSpecific',
                label : 'To',
                type : 'textfield',
                required : 'True'
            }
        ]
    }]

...

  • ]

Variable

Thai

ตัวแปร

[CONTEXT_PATH]

  • This variable will be replaced by Context Path of current URL.

    Thai

    ตัวแปรนี้จะถูกแทนที่ด้วยเส้นทางของ URL ปัจจุบัน

  • Usually used in property attribute value which is URL

    Thai

...

ตัวแปร

  • มักใช้ในค่าคุณสมบัติคุณสมบัติซึ่งเป็น URL

  • Example : '[CONTEXT_PATH]/web/property/json/getElements?classname=org.joget.apps.form.model.FormValidator'

  • Resulted URL : '/jw/web/property/json/getElements?classname=org.joget.apps.form.model.FormValidator'


[APP_PATH]

  • This variable will be replaced by Context Path by Current App Id and App Version of current URL.

    Thai

    ตัวแปรนี้จะถูกแทนที่ด้วยเส้นทางของ ตัวแปรนี้จะถูกแทนที่ด้วยรหัสแอปปัจจุบันและเวอร์ชันแอปของ URL ปัจจุบัน

  • Usually used in property attribute property attribute value which is URL

    Thai

    มักใช้ในค่าคุณสมบัติคุณสมบัติซึ่งเป็น URL

  • Example : '[CONTEXT_PATH]/web/property/json/getElements?classname=org.joget.apps.form.model.FormValidator'

    Resulted URL : '/jw/web/property/json/getElements?classname=org.joget.apps.form.model.FormValidator'

[APP_PATH]

  • This variable will be replaced by Current App Id and App Version of current URL.

    Thai

    ตัวแปรนี้จะถูกแทนที่ด้วยรหัสแอปปัจจุบันและเวอร์ชันแอปของ URL ปัจจุบัน

  • Usually used in property attribute value which is URL

    Thai

    มักใช้ในค่าคุณสมบัติคุณสมบัติซึ่งเป็น URL

  • Example : '[CONTEXT_PATH]/web/json/console/app[APP_PATH]/datalist/options'

  • Resulted URL : '/jw/web/json/console/app/crm/3/datalist/options'

Retrieve Properties Value in Plugin

Thai

ดึงค่าคุณสมบัติในปลั๊กอิน

  • All the plugin must extends the "org.joget.plugin.base.ExtDefaultPlugin" abstract class. We can use the "Object getProperty(String)" and "String getPropertyString(String)" method to retrieve the configured properties.

    Thai

    ปลั๊กอินทั้งหมดจะต้องขยายคลาสนามธรรม "org.joget.plugin.base.ExtDefaultPlugin" เราสามารถใช้วิธี "Object getProperty (String)" และ "String getPropertyString (String)" วิธีการเพื่อดึงคุณสมบัติที่กำหนดค่าไว้

Single Value Field

  • /json/console/app[APP_PATH]/datalist/options'

  • Resulted URL : '/jw/web/json/console/app/crm/3/datalist/options'

Retrieve Properties Value in Plugin

Thai

ดึงค่าคุณสมบัติในปลั๊กอิน

  • All the plugin must extends the "org.joget.plugin.base.ExtDefaultPlugin" abstract class. We can use the "Object getProperty(String)" and "String getPropertyString(String)" method to retrieve the configured properties.

    Thai

    ปลั๊กอินทั้งหมดจะต้องขยายคลาสนามธรรม "org.joget.plugin.base.ExtDefaultPlugin" เราสามารถใช้วิธี "Object getProperty (String)" และ "String getPropertyString (String)" วิธีการเพื่อดึงคุณสมบัติที่กำหนดค่าไว้

Single Value Field

Thai

เขตข้อมูลค่าเดียว

Code Block
languagejava
String value = getPropertyString("property_name");

Multi Values Field

Thai

ฟิลด์ค่าหลายค่า

Code Block
languagejava
String[] values = getPropertyString("property_name").split(";");

Combine Grid Field

Thai

รวมเขตข้อมูลกริด

Code Block
languagejava
String[] col1_values = getPropertyString("col1_name").split(";");
String[] col2_values = getPropertyString("col2_name").split(";");

Grid Field

Thai

ฟิลด์กริด

Thai
เขตข้อมูลค่าเดียว

Code Block
languagejava
StringObject valuecolumns = getPropertyStringgetProperty("property_name");

Multi Values Field

Thai

ฟิลด์ค่าหลายค่า

Code Block
languagejava
String[] values = getPropertyString("property_name").split(";");

Combine Grid Field

Thai

รวมเขตข้อมูลกริด

Code Block
languagejava
String[] col1_values = getPropertyString("col1_name").split(";");
String[] col2_values = getPropertyString("col2_name").split(";");

Grid Field

...


if (columns != null) {
    for (Object colObj : (Object[]) columns) {
        Map col = (Map) colObj;
        String col1_value = (String) opt.get("col1_key");
        String col2_value = (String) opt.get("col2_key");
    }
}

Repeater Field

Code Block
languagejava
Object columns = getProperty("property_name");
if (columns != null) {
    for (Object colObj : (Object[]) columns) {
        Map col = (Map) colObj;
        String col1_value = (String) opt.get("col1_key");
        String col2_value = (String) opt.get("col2_key");
    }
}

...