COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Business Insight / Cognos Workspace => Topic started by: krishna.cog@gmail.com on 07 May 2013 06:48:15 PM

Title: Java Script is not working in Cognos 102 Work Space !!!!!!!
Post by: krishna.cog@gmail.com on 07 May 2013 06:48:15 PM
Hi All,

I have a report studio dashboard in there I have implemented the Java Script to dynamically
select the first row value from the value prompt. which is in the prompt page. 
It is working as is expected in Report Studio. 

Now my objective is to put this dashboard report in Cognos workspace. 

When I kept the dashboard report in the workspace Java script associated with the
value prompt is not working.  it is just bringing me the value prompt not selecting the value by default. 

Is there any body has come across the same?  Please share me your thoughts.

Apart from this I have also tried to use parameterized url's but my problem is I can't pass the prompt values neither in business insight nor in workspace.

If the above two methods are not possible is it possible through SDK?

Please advise.

Thanks
J
Title: Re: Java Script is not working in Cognos 102 Work Space !!!!!!!
Post by: krishna.cog@gmail.com on 22 May 2013 03:31:11 PM
Hi Gurus,

Any updates on this issue.  Please let me know your thoughts.

Thanks
J
Title: Re: Java Script is not working in Cognos 102 Work Space !!!!!!!
Post by: apache on 13 Jun 2013 01:31:41 AM
Hi,

I have a similar problem. I've implemented Java Script to create tabs in my Report Studio report. It also works fine in Report Studio, but not in Cognos Workspace.

When opening Cognos Workspace in IE, a script error is reported:

Message: Object expected
Line: 265034169
Char: 1
Code: 0
Title: Re: Java Script is not working in Cognos 102 Work Space !!!!!!!
Post by: CognosPaul on 13 Jun 2013 02:03:13 AM
I've had a few problems with JS in workspace and in the portals and have identified a few problem areas with the 10.2 API. Are you using the _THIS_ keyword anywhere? Cognos chokes on that. Replace that with _NS_ and see if it works (it won't work in RS though).

If that doesn't solve it, post the JS in it's entirety.
Title: Re: Java Script is not working in Cognos 102 Work Space !!!!!!!
Post by: apache on 13 Jun 2013 03:05:28 AM
I wasn't using the new Prompt API that ships with Cognos 10.2. After changing my script functions to use the API, everything is working in both Report Studio and Cognos Workspace.

Title: Re: Java Script is not working in Cognos 102 Work Space !!!!!!!
Post by: Manu0521 on 24 Mar 2014 10:04:08 AM
Can you send me the code, I am facing same issue.

Thanks
Title: Re: Java Script is not working in Cognos 102 Work Space !!!!!!!
Post by: ravi.kumar on 25 Mar 2014 06:09:59 AM
Can you please share how you have made use of the Prompt API.