Skip to content

$p.selectedIds

Overview

This is an explanation of the method to get an array of IDs of the target records checked on the "Screen Index".

Syntax

JavaScript
$p.selectedIds();

Usage Examples

  1. In the Script tab of the Manage Table screen, set the output destination to "Index" and set the following.
JavaScript
$p.events.before_send_OpenExportSelectorDialogCommand = function (args) {
    console.log($p.selectedIds());
}
  1. Check any record on the Screen Index.
  2. Press the Export button.
Result

An array of IDs of the target records checked on the Screen Index is obtained.

[
    11111,
    33333,
    55555
]

Supported Versions

  1. Pleasanter 1.2.14.0 or later
  2. Pleasanter .NET Framework version 0.50.277 or later