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

Referencing Parameter Map with parameter from the prompt

Started by ordotan, 01 Aug 2013 05:57:25 AM

Previous topic - Next topic

ordotan

Hi,

Is there a way to access a pre-defined parameter map with some parameter?

Let's say I have the  following parameter map, which called "SampleMap"




1 A
2 B
3 C

And I want to create a filter based on this parameter map, and I want to referenct it with parameter ('param') from my prompt page.

I want to do something like -

#$SampleMap{#sq(prompt('param','string'))#}# = {some condition}

But it doesn't pass validation, due to wrong syntax.

Any suggestions ?




CognosPaul

You only need hashes (#) at the beginning and end of a macro expression. Get rid of the ones around the prompt.

Second, a string parameter in the prompt will always return a a value inside two single quotes. You don't need the SQ there.