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

Based on condition .. image should display.

Started by harika321, 18 Jun 2009 05:50:09 AM

Previous topic - Next topic

harika321

Hi All,

I m facing on issue, Please help on this.

I want to display a image based on condition.

Ex: if country is india then india image should display

if country changes then images also sholud change.

Please tell me the procedure with example.

Advance thanks for your help on this?


NaviGator

You can use a conditional block for this ..

create a block for each country, put the image in the background of each block. so when you change the country using a value prompt for example the block will appear that contains the required image
Never Stop Learning ..

vij

HI  harika321 ,\

as per your stated specification i am assuming that in your report you  have prompt for COUNTRY.try the given one......
1)lets assume that you have country values as  INDIA,CHINA,CANADA in Country Prompts.
2)take the 3 images in report page,each for every region.

3)Create a String Variable and add the values into it as INDIA,CHINA,CANADA.

4)put expression in it as......
"if (ParamDisplayValue('Parameter1')='INDIA')
then('INDIA')
else if (ParamDisplayValue('Parameter1')='CANADA')
then('CANADA')
else('CHINA')"

5)go to the report page click on an image for INDIA value to be displayed and in Properties pane at Left hand side click the Render Variable .

6)In that Select your created String variable and then uncheck the CHINA and CANADA values and keep check for INDIA value.

7)now next select another image for CHINA country.select the Render variable in that uncheck the INDIA and CANADA values and keep check for CHINA.

8)Do same for CANADA value.

now run the report.

hope it might reach at your expecation.


regards,
vij
:)