Overview of the Script Editor

After setting up a project and creating a new script, you can start creating code with the Script Editor.

  • You can write the code that should be run in the script editing pane.

  • You can add other resources from DXP - Open Edition to your script and work with them.

  • You can use a large number of existing code snippets.

  • You can get AI assistance

  • Advanced search capabilities

  • You can run the script when you are finished.

Script Editor view

script editor at a glance

Functions in the script editing pane

You can run functions in the Script editing pane by right-clicking to open the context menu. Here are some:

Version Management

Click Version Management to open a window that shows previous versions of the current script

Split Horizontally

Split the Script editing pane horizontally. You can work on two different scripts the same time now

Split Vertically

Split the Script editing pane vertically. You can work on two different scripts the same time now

Code Snippets

See Code snippets in the Script Editor for more details

Explain Selected Code

Explains the selected code using OpenAI’s ChatGPT. The output will be displayed at the OpenAI Chat panel

Refactor Selected Code

Refactors selected code using OpenAI’s ChatGPT. The refactor version will be displayed at the OpenAI Chat panel ready for copy

Functions in the side navigation

Toggle explorer

Opens the resources panel

Search

The search feature allows users to search for code throughout all scripts within your selected project.Additionally, it offers the ability to replace code, enabling users to make modifications efficiently

Toggle fullscreen mode

Fullscreen mode is a feature that allows the user to expand the Script Editor to occupy the entire screen, hiding other elements such as the browser’s address bar, tabs, and operating system taskbar

Header Content

Project Dropdown

In the dropdown you will find:

Open

Open an existing project

Create

Creates a new project

Global Search

The global search feature allows users to search for code snippets across all scripts in all existing projects

Refresh Masterdata

Refreshes Masterdata. This is used when outer resources are changed in order to update your project with the latest changes. For example, redefining an API or a Table

Recently opened projects

Shows all recently opened projects from the user

Actions and Functions

script editor header left

The shell bar includes the following actions and functions:

Resize Vertically

Relocates the resource pane under the project pane

Toggle log

Disables the Run script dialog and replaces it with a similar-purpose pane

Toggle OpenAI Chat

Facilitates an OpenAI ChatGPT chat pane for AI assistance during coding, featuring adjustable settings for Model, Temperature, Max Tokens, and Stream. Additionally, offers an option to export the ongoing chat

script editor gpt pane