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

FM - Macro for Multilingual

Started by Cognos8, 01 Feb 2015 10:14:01 PM

Previous topic - Next topic

Cognos8

In Godataware house model , i see below expression in FM.#$Language_lookup{}#   is a paramater and how we dreive "$runLocale". Can any one explain the below line ?

#'[GO data].[GO_GENDER_LOOKUP].[GENDER_'+ $Language_lookup{$runLocale}+ '] '#

MFGF

Quote from: Cognos8 on 01 Feb 2015 10:14:01 PM
In Godataware house model , i see below expression in FM.#$Language_lookup{}#   is a paramater and how we dreive "$runLocale". Can any one explain the below line ?

#'[GO data].[GO_GENDER_LOOKUP].[GENDER_'+ $Language_lookup{$runLocale}+ '] '#

Language_lookup is a parameter map. If you expand the Parameter Maps folder in the model tree on the left you should see it defined there.

runLocale is a pre-defined session parameter, which contains the chosen locale of the currently logged in user. If you select "Project" on the menubar and choose the Session Parameters option, you will see all the currently defined session parameters with their values.

The macro uses the value in the runLocale session parameter to read the parameter map, and returns the corresponding value from the parameter map into the expression.

Cheers!

MF.
Meep!