Versions Compared

Key

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

Table of Contents

Usages

Thai

ตามธรรมเนียม

  • Used to extend methods of executing an action on list item. E.g. Delete a record

    Thai

    ใช้เพื่อขยายวิธีการดำเนินการกับรายการ เช่น. ลบบันทึก

  • Datalist Action Plugin can be used as Datalist row action as single record action or as whole list action for multiple records. It also can use in individual column by configure it in Column - Action Mapping.   

    Thai

    ปลั๊กอินการกระทำดาต้าลิสต์สามารถใช้เป็นแอคชั่นแถวดาต้าลิสต์เป็นการกระทำแบบเรคคอร์ดเดี่ยวหรือการกระทำแบบรายการทั้งหมดสำหรับหลาย ๆ นอกจากนี้ยังสามารถใช้ในแต่ละคอลัมน์โดยกำหนดค่าใน Column - Action Mapping.   

  • A useable Datalist Action Element plugin must extends org.joget.apps.form.model.Element abstract class.

    Thai

    ปลั๊กอินองค์ประกอบ Datalist ที่ใช้งานได้จะต้องขยายคลาสนามธรรม org.joget.apps.form.model.Element

Abstract Class

Thai

ชั้นนามธรรม

org.joget.apps.datalist.model.DataListActionDefault

  • Under wflow-core module

    Thai

    ภายใต้โมดูล wflow-core

  • Extended org.joget.plugin.base.ExtDefaultPlugin. Please refer to Plugin Base Abstract Class and Interface.

    Thai
    ขยาย org.joget.plugin.base.ExtDefaultPlugin โปรดอ้างอิงถึง Plugin Base Abstract Class and Interface
  • Implemented org.joget.plugin.property.model.PropertyEditable. Please refer to Plugin Base Abstract Class and Interface.

    Thai
    ดำเนินการ org.joget.plugin.property.model.PropertyEditable โปรดอ้างอิงถึง Plugin Base Abstract Class and Interface
  • A base abstract class to develop a Datalist Action Plugin.

    Thai
    คลาสนามธรรมพื้นฐานเพื่อพัฒนาปลั๊กอินการทำดาต้าลิสต์

Method Detail

Thai

รายละเอียดวิธีการ

Abstract Methods
Thai
วิธีการเชิงนามธรรม
getLinkLabel
public java.lang.String getLinkLabel()

Descriptive name for the action

Thai

ชื่อที่สื่อความหมายสำหรับการกระทำ

getHref
public java.lang.String getHref()

Optional link to a URL

Thai

ลิงค์ตัวเลือกไปยัง URL

getTarget
public java.lang.String getTarget()

Optional link to a URL

Thai

ลิงค์ตัวเลือกไปยัง URL

getHrefParam
public java.lang.String getHrefParam()

Name of the parameter if linked, separated by semicolon ";" if has multiple.

Thai

ชื่อของพารามิเตอร์หากเชื่อมโยงคั่นด้วยเครื่องหมายอัฒภาค ";" ถ้ามีหลายค่า

getHrefColumn
public java.lang.String getHrefColumn()

Name of the column to use for the param value if linked, separated by semicolon ";" if has multiple.

Thai

ชื่อของคอลัมน์ที่จะใช้สำหรับค่าพารามิเตอร์หากเชื่อมโยงคั่นด้วยเครื่องหมายอัฒภาค ";" ถ้ามีหลายค่า

getConfirmation
public java.lang.String getConfirmation()

Message for confirmation

Thai

ข้อความยืนยัน

executeAction
public org.joget.apps.datalist.model.DataListActionResult executeAction(org.joget.apps.datalist.model.DataList dataList,java.lang.String[] rowKeys)

Method to perform the action on selected rows

Thai

วิธีการดำเนินการกับแถวที่เลือก

Overridable Methods
Thai
วิธีการ Overridable 
getVisibleOnNoRecord
public java.lang.Boolean getVisibleOnNoRecord();

Flag that decide to show an action object or not

Default to the value of property "visible".

Thai

ค่าเริ่มต้นเป็นค่าของคุณสมบัติ "visible"

Plugin Properties Options

Thai

ตัวเลือกคุณสมบัติปลั๊กอิน

Predefined Property  

Thai

คุณสมบัติที่กำหนดไว้ล่วงหน้า

visible

Thai

มองเห็นได้

  • getVisibleOnNoRecord method use this value to decide whether or not show this action when no record in the datalist

    Thai

    เมธอด getVisibleOnNoRecord ใช้ค่านี้เพื่อตัดสินใจว่าจะแสดงแอ็คชันนี้หรือไม่เมื่อไม่มีเร็กคอร์ดในรายการข้อมูล

Code Block
    {
        label : '@@datalist.hyperlinkdatalistaction.visible@@',
        name : 'visible',
        type : 'checkbox',
        options : [
            {'value' : 'true', 'label' : ''}
        ]
    }

Tutorials

Thai

สอน

Related Community Plugins

Thai

ปลั๊กอินที่เกี่ยวข้อง

  • Form Row Delete Action

    Thai

    การกระทำลบแบบฟอร์มแถว

    org.joget.apps.datalist.lib.FormRowDeleteDataListAction (wflow-core)

  • Data List Hyperlink Action

    Thai

    รายการข้อมูลการกระทำเชื่อมโยงหลายมิติ

    org.joget.apps.datalist.lib.HyperlinkDataListAction (wflow-core)