COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: orbair on 23 Jun 2014 08:04:12 AM

Title: starting with js
Post by: orbair on 23 Jun 2014 08:04:12 AM
Hi all,

I would like to start with basic js, but even with alert 'Hello World' I cannot get through :) I have an HTML object <script > alert("Hello World");</script>, but when I run the report there is no popup.  Please help, thanks.

R.
Title: Re: starting with js
Post by: Chandrasekar on 23 Jun 2014 09:43:11 AM
Hi Orbair,

What type of alert you want? like first alert was displayed, after press ok then report will be displayed. Or Both displayed in same place?

I am attached picture what i get actually.

Thanks & Regards,
Chandrasekar
Title: Re: starting with js
Post by: orbair on 23 Jun 2014 11:02:50 AM
Hi Chandrasekar

the report is running but no popup. I would like what you attached. I have tried what is here at the website below, but on an empty page...

http://www.ironsidegroup.com/2011/07/25/ibm-cognos-and-javascript-%E2%80%93-part-i/

Thanks
Title: Re: starting with js
Post by: Chandrasekar on 23 Jun 2014 11:36:08 AM
Hi Orbair,

What i am telling means, I am using your script <script> alert("Hello Wold")</script> in my project.

That only i attached to you. It works clearly.

Thanks & Regards,
Chandrasekar.
Title: Re: starting with js
Post by: orbair on 24 Jun 2014 03:17:26 AM
For me is not working, this is the problem. Don't know why.

Thanks
Title: Re: starting with js
Post by: Chandrasekar on 24 Jun 2014 04:21:09 AM
Hi Orbair,

I am using in Cognos 10.2 Dimensional model.

If you are using Relational / Dimensional model?

Thanks & Regards,
Chandrasekar.
Title: Re: starting with js
Post by: orbair on 24 Jun 2014 04:55:55 AM
Now it is working, I unlocked the report and back. Thanks