Skip to content

$p.getColumnName

Overview

This explains the method to get the target item's column name (database column name).

Syntax

JavaScript
$p.getColumnName('Column name')

Usage Examples

Set the following sample code in the Pleasanter script, set the output destination to "Edit", and then move to the edit screen.

JavaScript
$p.events.on_editor_load = function () {
    $p.setMessage('#Message', JSON.stringify({
        Css: 'alert-success',
        Text: $p.getColumnName('title')
    }));
}