COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: Pratap Reddy on 09 Feb 2018 12:57:09 AM

Title: Maps with Javascript in Active Reports
Post by: Pratap Reddy on 09 Feb 2018 12:57:09 AM
Hi,

Approach : can do with custom control with .js file

can we have java script in Html item to get Maps.if so can any one let me know the java script in Active reports?

Thanks in Advance.

Title: Re: Maps with Javascript in Active Reports
Post by: dougp on 09 Feb 2018 09:46:18 AM
It depends.  You're using Cognos 11, so...

If Run with full interactivity property is set to No, yes you can do that.
If Run with full interactivity property is set to Yes, no you can't do that.  You'll need to create the map as a Custom Control.

I recommend using a Custom Control.  It seems far easier to control and maintain.
Title: Re: Maps with Javascript in Active Reports
Post by: MFGF on 09 Feb 2018 10:27:18 AM
The other big question is... what sort of maps? Are you talking about the old Cognos 8/10 maps, or a RAVE map visualization, or the new MapBox maps in CA, or something else such as Google Maps?

MF.
Title: Re: Maps with Javascript in Active Reports
Post by: Lynn on 09 Feb 2018 10:51:45 AM
I'm not sure the Run with full interactivity property is applicable for active reports. It is shown as a report property, but active reports don't run in the interactive viewer so I suspect it is perhaps not relevant for active reports.
Title: Re: Maps with Javascript in Active Reports
Post by: dougp on 09 Feb 2018 12:25:33 PM
That may be true, Lynn.  I don't use Active Reports much, but I did notice I had a bit more flexibility with JavaScript.

MFGF:  Good questions.  I'm using a Custom Control that leverages OpenLayers 3 to use base maps from ArcGISOnline and OSM and place points or join to a feature service using a key field.  Using the built-in mapping features would be totally different.
Title: Re: Maps with Javascript in Active Reports
Post by: Pratap Reddy on 12 Feb 2018 03:57:04 AM
Thanks your reply.

Dougp and Lyn,

I have changed the Active Report property 'Run with full interactivity' Set to No and it is working good, if it Yes it is throwing an error.

MFGF,

I have used Rave Visualization (Dynamic Map from Legacy Visualizations) in Active reports,but i cant get the map visualization as much as good like Map in Dashboard.Custom Control have an option with mapbox to solve this,my question is can have any other possible option to get the MAP Visualization as much as good like in Dashboard.

if i choose Custom control with Mapbox. i have to two file with .css and .js files to upload/insert in the module path.In some the video i have ceen that they are pushing the Map Visualization with only .js file.

Example : congressional States in US


Thanks in Advance