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

[Solved]Value Prompt and Conditional Explorer

Started by otsizh, 03 Oct 2005 02:03:49 PM

Previous topic - Next topic

otsizh

Hello,

Is it posible to create the value prompt with static choices only (Collection) for example:
Use ValÃ,  Ã,  Display
rÃ,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  red
gÃ,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã, green
then, to create a Conditianal variable with conditional expresion:
if( ?Param1? = 'r') then 'Yes' else 'No'

that will change the baground of the list (if user will oick red the baground should be red, if green then green)

it is always dispays baground in 'green' color, it looks like the expressinon did not catch the papameter value.
Can anybody help?
Thank you

mallika

yes it is possible. however your expression may not be correct. In the layout expression editor, select the parameters tab, this will list out all parameters. Drag the parameter that is associated with your prompt. If you create a boolean variable then your expression will be

ParamDisplayValue("Parameter1")='red'

Remember if your variable is of type Boolean then you need not use If ... else, any comparision operator like =, <, >  validates to true or false (yes or no).


otsizh


COGNOiSe administrator

otsizh, don't forget to click on the 'tick' symbol on the post that helped solve your problem. This helps others identify which topics have been solved and which post helped solve the question.

Thanks