Scriptable Reports

A scriptable interface is available for many objects in the report output. For the complete list see Supported controls.

Script written against this interface will continue to work in future releases. Reports can be scripted using 2 types of RequireJS AMD modules:

  1. A module that implements the CustomControlModule interface.
  2. A module that implements the PageModule interface.

To determine which approach is best, see When to use.

Adding a custom control to a report

CustomControl Modules are referenced by a Custom control inserted from the toolbox.

See Referencing module JavaScript for a description of how to reference a JavaScript module. Inline JavaScript and referencing external script using HTML script elements is no longer supported in HTML Items.

Advantages

What advantages does this approach have over including JavaScript in an HTML Item and using the Prompt API? See 02 Why better for details.