Chapter 4. Elixir JavaScript Editor

Table of Contents

Introduction
Function Availability
Referencing JavaScript

Introduction

Elixir Repertoire tools include a JavaScript editor, connected to a JavaScript engine for immediate testing and evaluation of expressions. This editor allows the creation of a library of common JavaScript functions that can be added to any other JavaScript evaluation, such as a Report Function Definitions script or a Composite DataSource script.

To launch the editor:

The JavaScript editor supports syntax colouring to make it easy to see the different aspects of the code. You can evaluate code using the Popup menu and selecting an option.

  • Do It: executes the selected text as a JavaScript expression.
  • Show It: evaluates the selected text as a JavaScript expression and outputs the result of evaluation back into the editor.
  • Reset: resets the JavaScript engine to the default state.

  1. Right click any entity from the Repertoire tree and select Add > Javascript.

  2. Enter a filename for the Javascript file and click Finish.

Figure 4.1. JavaScript Editor

JavaScript Editor