COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: psahay on 03 Jan 2019 09:59:52 AM

Title: Sample Java Script Reports - Cognos Analytics
Post by: psahay on 03 Jan 2019 09:59:52 AM
Hi ,
I have downloaded the sample java script reports in cognos Analytics but when ever I try running those reports it gives me a error
Scriptable Report Error
Module:
/samples/javascript/AutoRefresh/AutoRefresh.js
Description
Failed to load module.
scripterror
/samples/javascript/AutoRefresh/AutoRefresh.js
I have made sure the JavaScript is located at the path .
Any idea why am I getting these error messages. Thanks
Title: Re: Sample Java Script Reports - Cognos Analytics
Post by: dougp on 03 Jan 2019 01:55:16 PM
Assuming you're talking about the JavaScript samples found at <Cognos Analytcs installation directory>\samples\JavaScript, either the samples or the instructions are broken.

The instructions say:
QuoteCopy this unzipped javascript folder and place it on your Cognos server here:
<Cognos Analytcs installation directory>\webcontent\samples\

Assuming the default settings for your installation, that means the report should expect to find them here: /ibmcognos/samples
Unfortunately, the reports are designed to find them at /samples/javascript

You can either update each report, or put the sample scripts in <default web site location>\samples\javascript.  On a default IIS install, that would be C:\inetpub\wwwroot\samples\javascript.
Title: Re: Sample Java Script Reports - Cognos Analytics
Post by: psahay on 04 Jan 2019 12:43:20 PM
Thank you now its all working :)