Developer Function: Server Script: grid
## Overview
Get index display information using "[Server Script](/en/manual/table-management-server-script)".
## Limitations
1. Only "「Condition」" in "Before Screen Display" can be used.
## Supported Versions
1. Pleasanter 1.3.13.0 or later
## Properties
|No|Name|Get|Set|Type|Description|
|:----|:----|:----|:----|:----|:----|
|1|TotalCount|Yes|No|int|Total number of records in the index|
## Method
|No|Name|Description|
|:----|:----|:----|
|1|[SelectedIds](https://pleasanter.org/manual/server-script-grid-selected-ids)|Get the IDs of the records selected on the Screen Index using the "[Server Script](/en/manual/table-management-server-script)". |
## Usage Example
The following example outputs the total number of records to the browser console.
##### JavaScript
```
context.Log('Total number of records =' + grid.TotalCount);
```
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/server-script-grid-selected-ids">Developer Function: Server Script: grid.SelectedIds</a><span>08.14.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />