COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Active Reports => Topic started by: abhinadig on 20 Jun 2016 09:17:17 PM

Title: Javascript in Active Reports?
Post by: abhinadig on 20 Jun 2016 09:17:17 PM
Hello All,

I'm new to active reports. Can anyone please confirm whether Javascript is supported in Active Reports.

If yes can u please provide some example or some related document on the same.

Thanks
Title: Re: Javascript in Active Reports?
Post by: MFGF on 21 Jun 2016 01:36:33 AM
Quote from: abhinadig on 20 Jun 2016 09:17:17 PM
Hello All,

I'm new to active reports. Can anyone please confirm whether Javascript is supported in Active Reports.

If yes can u please provide some example or some related document on the same.

Thanks

Why do you need JavaScript? What is it your report needs to do that you can't figure out using inbuilt technology?

MF.
Title: Re: Javascript in Active Reports?
Post by: abhinadig on 21 Jun 2016 09:33:07 PM
 :)

We have a requirement where the user should be able to select a data range and based on this data needs to be shown on chart for these dates selected. 

Can u please give some example or hint on how this can be achieved.
Title: Re: Javascript in Active Reports?
Post by: MFGF on 22 Jun 2016 06:56:47 AM
Quote from: abhinadig on 21 Jun 2016 09:33:07 PM
:)

We have a requirement where the user should be able to select a data range and based on this data needs to be shown on chart for these dates selected. 

Can u please give some example or hint on how this can be achieved.

If you're using a chart, then a data deck driven by the selected data item is the way to go. Alternatively, if you're using a visualization, you can filter the visualization based on the selected value.
Title: Re: Javascript in Active Reports?
Post by: abhinadig on 22 Jun 2016 07:17:18 AM

For example if the user selects 1 June 2016 then in chart all the dates greater than 1 June 2016 shouldbe displayed.
For this we have a period column containing dates. So if the user selects 1 June 2016 then in chart it should show Period >= 1 June 2016 data.

I hope i'm clear with my requirement now  :)
Title: Re: Javascript in Active Reports?
Post by: MFGF on 22 Jun 2016 07:34:37 AM
Quote from: abhinadig on 22 Jun 2016 07:17:18 AM
For example if the user selects 1 June 2016 then in chart all the dates greater than 1 June 2016 shouldbe displayed.
For this we have a period column containing dates. So if the user selects 1 June 2016 then in chart it should show Period >= 1 June 2016 data.

I hope i'm clear with my requirement now  :)

Hi,

I think if I was doing this I would be using a visualization and filtering it based on date. For the date selection I would use a Data Discrete Values Slider.

Cheers!

MF.
Title: Re: Javascript in Active Reports?
Post by: abhinadig on 24 Jun 2016 03:50:06 AM
Thanks a lot for us help.

I tired downloading visualization bundles but analyticszone site is not working.  Has the site changed.  If yes can u please help with new site details.
Title: Re: Javascript in Active Reports?
Post by: MFGF on 24 Jun 2016 04:45:55 AM
Quote from: abhinadig on 24 Jun 2016 03:50:06 AM
Thanks a lot for us help.

I tired downloading visualization bundles but analyticszone site is not working.  Has the site changed.  If yes can u please help with new site details.

Hi,

IBM have moved the visualizations to the DeveloperWorks site. Their new home is here:

https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=9685c9a6-3133-4823-85e8-f5f81268267a#fullpageWidgetId=W561990aafebc_4d8b_9af8_7c03c0081265&folder=fa9cc7b3-7307-4a15-abc0-352e43dafb1a

Cheers!

MF.
Title: Re: Javascript in Active Reports?
Post by: abhinadig on 24 Jun 2016 09:45:38 AM
Thanks a lot