COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: maddy4u on 19 Aug 2011 11:35:25 AM

Title: Tool tip for a prompt using a column
Post by: maddy4u on 19 Aug 2011 11:35:25 AM
Hi,

I have 2 columns 'product' and 'product description'.Now,in the prompt page I assign the 'product' column to the value prompt and when I run the report and  hover on the values in the prompt,it should display a tool tip with  the 'product description' which is a column.Does anyone have a java script for this?Or can we display a text with diff descriptions for different values in the prompt?
Title: Re: Tool tip for a prompt using a column
Post by: LOUM on 14 Oct 2011 03:52:23 PM
Anyone? I have similar request.
Title: Re: Tool tip for a prompt using a column
Post by: kattaviz on 18 Oct 2011 10:15:38 AM
Hi,

If i understood your question correctly, you are trying to display a tool tip for a list reprot column.

To display a tool tip

1) unlock the report
2) Place a HTML item before the data item in the column
3) Change the source type for HTML item to "Report Expression".
4) Type '<span title="'+[Product name]+'")"> ' (including single quotes) in the Expression Definition, where [Product name] is the data item you want to display as a tool tip.
5) Add another HTML item after the data item in the column
6) Change the source type for HTML item to "Report Expression".
7) Type '</span>' (including single quotes) in the Expression Definition

HTH