Create a script

To create a new script, you can either use the resources stored within Neptune DXP - Open Edition as a starting point or create completely new scripts.

Prerequisites

Procedure

  1. In the Application components pane, right-click Scripts. When you open a new project, the entries Scripts and Globals are shown in the Application components pane by default.

  2. Select Create Script.

    Result: The Create New Server Script dialog opens.

  3. In Name, enter a meaningful name for the script.

  4. In Description, enter a meaningful description of the script.

  5. To optionally group similar scripts, in Folder, assign a script a folder tag. Scripts that contain the folder tag are grouped to the same-name folder in the Application component pane.

  6. In Language, to define the language the script is written in, select between JavaScript and TypeScript.

  7. Select Create.

You can import scripts that are stored on your computer. Right-click Scripts and select Import Script.

Result

  • You have created a script in the language selected, and it is shown in the Application components pane.

  • The focus of the Script Editor changes to the Script editing pane of the script.

Next steps