If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Showing images based on a condition

Started by cognos05, 18 Dec 2018 03:40:58 PM

Previous topic - Next topic

cognos05

Hi Guys,

I wanted to show an image based on the growth value .

if([Growth %]>=0.2)
Then ('../samples/images/icon_metric_trend_up.gif'))


But I am not able to get the image showing .

it just displays the text ../samples/images/icon_metric_trend_up.gif.

Is this the right approach .

dougp

That's the output I would expect from that expression.

Try an HTML item and put HTML in it.

if (<condition>)
then ('<img src="/folder/image.gif" />')

cognos05

so i wanted to show the trend icon next to growth . so unlocked the cell and a brought a data item next to growth and specified the image .

How should I do that with html item.

Should I go for conditional formatting .


CognosPaul

Use an image item, and use that expression as the URL source.

cognos05

#4
should define the image location in the dataitem. Got it thanks !!