Skip to content

$p.getGridColumnIndex

Overview

This explains the method to get the column number of the record's name displayed data on the "Screen Index".

Syntax

JavaScript
$p.getGridColumnIndex('(Name Displayed)')

Usage Examples

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

JavaScript
$p.events.on_grid_load = function () {
    $p.clearMessage();
    $p.setMessage('#Message', JSON.stringify({
        Css: 'alert-success',
        Text: $p.getGridColumnIndex('Title/Content')
    }));
}