Skip to content

$p.getGridRow

Overview

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

Overview

$p.getGridRow(Record ID)

Usage Examples

If you set the following sample code to the Pleasanter script, the title of record ID: 123 will be displayed when the Screen Index is loaded (assuming the title column is placed third on the Screen Index).

$p.events.on_grid_load = function () {
    $p.clearMessage();
    $p.setMessage('#Message', JSON.stringify({
        Css: 'alert-success',
        Text: $p.getGridRow(123)[0].children[2].textContent
    }));
}