Datalist Action Plugin

The Datalist Action Plugin extends methods of executing an action on a list item, such as Deleting a record. It can also be used as a Datalist row action, a single record action, or a whole list action for multiple records. It can also be configured in an individual column in Column—Action Mapping.

A usable Datalist Action Element plugin must extend the org.joget.apps.form.model.Element abstract class.

Abstract Class

org.joget.apps.datalist.model.DataListActionDefault

Abstract Methods

getLinkLabel

public java.lang.String getLinkLabel()
Descriptive name for the action

getHref

public java.lang.String getHref()
Optional link to a URL

getTarget

public java.lang.String getTarget()
Optional link to a URL

getHrefParam

public java.lang.String getHrefParam()
Name of the parameter if linked, separated by semicolon ";" if has multiple.

getHrefColumn

public java.lang.String getHrefColumn()
Name of the column to use for the param value if linked, separated by semicolon ";" if has multiple.

getConfirmation

public java.lang.String getConfirmation()
Message for confirmation

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

Overridable Methods

getVisibleOnNoRecord

public java.lang.Boolean getVisibleOnNoRecord();
A flag that decides to show an action object or not. Default to the value of property "visible".

Plugin Properties Options

Please refer to Plugin Properties Options for more information.

Predefined Property  

visible

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

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

 

Tutorials

For more details on this plugin, see the pages below.

Related Community Plugins

  • Form Row Delete Action
    org.joget.apps.datalist.lib.FormRowDeleteDataListAction (wflow-core)
  • Data List Hyperlink Action
    org.joget.apps.datalist.lib.HyperlinkDataListAction (wflow-core)
Created by Damian Last modified by Nik Nufayl on Jan 08, 2025