Skip to content

$p.tableName

Overview

This function allows you to obtain the type of folder or table in which the script is placed via an Ajax POST request.

List of values ​​that can be obtained

Table type Obtained value
Folder Sites
Recorded Table Results
Time-limited table Issues
Wiki Wikis

Syntax

JavaScript
$p.tableName();

Usage Examples

(1) Create a folder or table.
(2) Create a new "Script", write the following script content, and check "List" as the output destination and update it (if it's a Wiki, check "Edit" as the output destination).

JavaScript
alert('This table is of type [' + $p.tableName() + '].');

(3) Go to the list screen (if it's a Wiki, go to the editing screen).