JavaScript - Setup - Instructions-How To Install Javascript Samples PDF
JavaScript - Setup - Instructions-How To Install Javascript Samples PDF
4+)
Note: A pre-requisite for the JavaScript sample reports is the installation and configuration of the
Extended Samples (to obtain the samples database and data source connections). If the Extended
Samples are not already installed in your environment, installation instructions can be found here.
1. The JavaScript sample files are installed (but not configured or imported) with the product in an
Easy installation, and are an option in a Custom installation. After product installation, you can
find them here: <Cognos installation directory>\samples\JavaScript\
2. Locate and unzip the file javascript.zip. It contains a folder for each of the samples that
comprises all the report specs (.xml) and their corresponding JavaScript files (.js).
3. Copy this unzipped javascript folder and place it on your Cognos server here:
Notes: If the samples folder does not exist, you will need to create it. Additionally, if you are
accessing Cognos directly via the dispatcher, you must copy the unzipped javascript folder from
Step 2 above to every server in your environment.
1
4. Import the deployment JS_samples_deployment.zip to obtain the sample reports in your
Cognos environment. Here is a video that shows how to import a deployment.
5. Once imported, the sample reports will be in Team content Samples JavaScript
6. If your installation uses a gateway instead of a dispatcher (Easy Install uses a dispatcher) then
modifications must be made to the location of the Module path property of the Custom Control
in each sample. For example, in the Basic control sample report, if your web alias is ibmcognos,
you will need to use the following steps to set the correct module path:
/ibmcognos/samples/javascript/BasicControl/BasicControl.js
i) Edit the Basic control report located in Team Content Samples JavaScript
2
ii) Select the Custom control called BasicControl:
/samples/javascript/BasicControl/BasicControl.js
To
/ibmcognos/samples/javascript/BasicControl/BasicControl.js