Referencing module JavaScript

The custom control's Module path property is the URL where the CustomControlModule file will be loaded from.

A page's Module path property is the URL where the PageModule file will be loaded from. Both report pages and prompt page can load page modules.

Like image URLs, the Module path can be any location that is accessible when viewing the report. Some possibilities are:

  1. Store the JavaScript in the install location and reference it similar to how the sample images are referenced. A path of "../js/custom-controls/" in the report output will be located at install-location\webcontent\bi\js\custom-controls.

    Example

  2. Host the files on your own web server.

    Example

  3. Create an extension that can be uploaded to your install and then referenced using the endpoint v1/ext/my-extension.

    See Using an extension to host JavaScript more details.

    Example