Skip to content

Globals

Globals object is used to store and manage properties in the global store.

Basic Usage

import { globals } from "sdk/core";
import { response } from "sdk/http";


globals.set("attr1", "value1");
let attr = globals.get("attr1");

response.println("[Attribute]: " + attr);
response.flush();
response.close();

Functions


Function Description Returns
get(key) Returns the value per key from the global parameters string
set(key, value) Sets the value per key to the global parameters -