Versions Compared

Key

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

...

Repeater (New)

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', options: [{ value: 'true', label: ''}]},
        {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)

...

Panel
borderColorpurple
borderWidth1
titleBGColor#ddccff
borderStylesolid
titleNew Feature

This is a new feature in Joget DX.

Thai

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


  • type  : 'elementmultiselectnumber'

 

Select Box

Thai

เลือกกล่อง

...

Code Block
languagejs
{
    regex_validation : '^[a-zA-Z0-9_]+$',
    validation_message : 'Invalid ID!!'
}

Javascript Function Validation Attributes

  • The following attributes are designed for all field type. 

  • js_validation : Optional, Javascript function name in string format or a function

Code Block
languagejs
{
    regexjs_validation : '^[a-zA-Z0-9_]+$',functionName'
}
Code Block
languagejs
{
    js_validation_message : 'Invalid ID!!' function(fieldName, fieldValue) {
		if (fieldValue.indexOf("#") > 0) {
			return "Error! Value contains #";
		}
        return null;
	}
}

Dependency Field Attributes

...

  • 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

  • (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

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

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

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

...

Grid Field

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

ฟิลด์กริด

Code Block
languagejava
String[]Object valuescolumns = getPropertyStringgetProperty("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

ฟิลด์กริด

);
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 columnsfields = getProperty("property_name");
if (columnsfields != null) {
    for (Object colObjfieldObj : (Object[]) columnsfields) {
        Map colfield = (Map) colObjfieldObj;
        String col1field1_value = (String) optfield.get("col1field1_key");
        String col2field2_value = (String) optfield.get("col2field2_key");
    }
}

Element Select Box

...