User Manual

08.14.2024

MANUAL

Developer Function: Script: $p.selectedIds

## Overview This is an explanation of the method to get an array of IDs of the target records checked on the "[List Screen](/en/manual/table-grid)". ## Compatible Versions 1. Pleasanter 1.2.14.0 or later 1. Pleasanter .NET Framework version 0.50.277 or later ## Syntax ##### JavaScript ``` $p.selectedIds(); ``` ## Usage Example 1. In the Script tab of the table management screen, set the output destination to "[List](/en/manual/table-management-grid)" and set the following. ##### JavaScript ``` $p.events.before_send_OpenExportSelectorDialogCommand = function (args) { console.log($p.selectedIds()); } ``` 2. Check any record on the list screen. 3. Press the Export button. ##### Result An array of IDs of the target records checked on the list screen is obtained. ```text [ 11111, 33333, 55555 ] ``` ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/table-grid">Table Function: Record Screen Index</a><span>10.02.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/table-management-grid">Table Management: List Screen</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.