Skip to content

view.Id

Overview

This is the ID of the "View" object. You can get the ID of the "View" selected on the "Screen Index" in the "Server Script".

Cautions

  1. Only the "When Processing View" condition can be used.
  2. Because it is read-only, the value of view.Id cannot be set by script.
  3. View Id starts from 0. If no view is selected on the Screen Index, view.Id will be 0.
  4. This is an object used by the server script function. It cannot be used with the script function.

Usage Examples

The following example displays the ID of the view selected on the Screen Index in the console.

JavaScript
context.Log("Selected View ID: " + view.Id);