COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Active Reports => Topic started by: b737 on 16 Dec 2015 01:21:00 PM

Title: Tooltips for visualization
Post by: b737 on 16 Dec 2015 01:21:00 PM
Hi,

How to add some tooltips, pop-up, button...at visualization, so that I can explain what I have on visualization, what I use, and some things like that in text format, that does not use any data item or calculation from data model, just plain text.

Thanks
Title: Re: Tooltips for visualization
Post by: b737 on 26 Dec 2015 02:04:27 AM
I have found solution with help of those Cognos samples. Code is in attachment, it just need to use 2 html items before or after object that you want to explain. It shows red cube and when you are on it with mouse you can see explanation.

Now I want instead of that red cube to put some picture. How to do that, because I am not so familiar with coding.

Thanks 
Title: Re: Tooltips for visualization
Post by: ToriBurns on 13 Jan 2016 04:16:03 AM
Hi b737,

I updated the script you attached. The line <font size="4.2em"><font style="Bold">&#x25a0;</font></font> is the one that creates the red box. You need to use <img> tag of html to put some picture.

http://www.w3schools.com/tags/tag_img.asp (http://www.w3schools.com/tags/tag_img.asp)

I added a link to give you an idea of how to use <img> tag. Hope it helps.

Cheers!
Tori :)
Title: Re: Tooltips for visualization
Post by: b737 on 09 Feb 2016 04:16:15 AM
Thank you very much for your help. It works great
Title: Re: Tooltips for visualization
Post by: ToriBurns on 12 Feb 2016 04:43:46 AM
Thanks for letting me know. Glad I could help.  :D