DOCUMENTS 5 - PortalScripting API
Introduction


The DOCUMENTS Server supports an embedded scripting language called PortalScript. This language uses the Mozilla JavaScript engine SpiderMonkey 24 that implements ECMAScript 5.1 and parts of ECMAScript 6.

Notes

Script Exits

The PortalScripting allows to widely customize the behaviour of your system. For this purpose, PortalScripts (JavaScript files that use PortalScripting) can be called at special points in the system. These points are called Script Exits. To use this feature, you can simply create a PortalScript and attach it to one of the Script Exits. You'll find the Script Exits in the DOCUMENTS Manager.

You can find the entire list and documentation in chapter Script Exits. The following list just shows a small overview:

Features

PortalScripts may also be used to implement special requirements in DOCUMENTS, such as:

The PortalScript runtime environment grants access to a couple of properties of files or fields. You can also read out named constants (AutoTexts) like the current user or the name of the current workflow step. Prerequisites to implement PortalScripts are at least basic skills in general JavaScript programming and knowledge of classes, objects and properties allocated by the DOCUMENTS scripting interface (PortalScripting API).

Classes and Predefined Objects

In the following list you will find a small overview of all available classes and predefined objects. Predefined objects are explained in a contextual usage (i.e. when editing a file, fill a dropdown list etc.).

Predefined objects:

Some classes and interfaces:


This documentation refers DOCUMENTS 5.0e (2105).
Created at 11-09-2019. - © 1998-2019 otris software AG, Königswall 21, D-44137 Dortmund. support@otris.de