Skip to main content
Skip table of contents

Data Exchange Between JavaScript Calls

As explained on JavaScript Type Mapping, JavaScript objects and properties will vanish when the script finishes. You can, however, use the global session object to store JavaScript objects between operation calls. This object exists for the duration of the current session (one request to the Designer), and can be accessed from any script during that session.

Example

Script 1

CODE
number = 42;
session.number = number;

Script 2

CODE
answer = session.number + number;

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.