Developer Function: Script: $p.controller
## Overview
This is a script function that allows you to obtain the controller type via an Ajax POST request.
## List Of Obtainable Values
|Available screens|Obtained values|
|:--|:--|
|Tenant management screen|tenants|
|Department management screen|depts|
|Group management screen|groups|
|User management screen|users|
|Screens other than the above|items|
## Syntax
##### JavaScript
```
$p.controller();
```
## Usage Example
(1) Create a folder or table (in this example, we will retrieve items).
(2) Create a new "[Script](/en/manual/table-management-script)", write the following script content, and check "[List](/en/manual/table-management-grid)" as the output destination and update it (if it is a Wiki, check "「Edit」" as the output destination).
##### JavaScript
```
alert('This controller is of type [' + $p.controller() + '].');
```
(3) Go to the list screen.