COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: nayitian on 08 Jan 2008 08:37:27 PM

Title: FM parameter Maps
Post by: nayitian on 08 Jan 2008 08:37:27 PM
Hello all,

I am practicing Lookup function by using Parameter Maps in FM other than within DataManager.
I defined keys and values within a parameter map, and tried to add a new query item by adding caculation. I simply drag parameter to Expression definition, it appears as #$New_parameter_map{}# with error message : QE-DEF-0260 parsing error...

Can anyone educate me how to use this feature to substitue keys ? Thank you.
Title: Re: FM parameter Maps
Post by: MFGF on 09 Jan 2008 03:01:29 AM
Hi,

You need to provide a key value to perform the lookup on your parameter map - this should be inserted between the braces {}.  For example, if you want to use your current user's language as the key, your macro would be #$New_parameter_map{$runLocale}#

Regards,

MF.
Title: Re: FM parameter Maps
Post by: mikewalker on 10 Mar 2008 01:50:52 AM
Is is possible to substitute a Query Item's value as the key for a parameter map lookup?

For example:

#$New_parameter_map{ [Model].[Folder].[Query Subject].[Query Item] }#

The syntax is not liking it at the moment.
Title: Re: FM parameter Maps
Post by: SKAPP on 15 Sep 2008 06:58:44 AM
Mike,
Did anyone ever answer your question?  I have the exact same problem.
please and thanks,
Sylvia
Title: Re: FM parameter Maps
Post by: mikewalker on 03 Nov 2008 04:34:05 AM
I haven't found a solution for this yet, and time hasn't permitted me to investigate it further.

Still if you find any solution I would be interested in hearing how it works...

Good luck


Title: Re: FM parameter Maps
Post by: platipuss on 08 Oct 2009 10:50:52 AM
Quote from: mikewalker on 10 Mar 2008 01:50:52 AM
Is is possible to substitute a Query Item's value as the key for a parameter map lookup?

For example:

#$New_parameter_map{ [Model].[Folder].[Query Subject].[Query Item] }#

The syntax is not liking it at the moment.


try

#$New_parameter_map{sq([Model].[Folder].[Query Subject].[Query Item])}#

if the key is a string.