COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: lalitha.nov20 on 18 Jan 2016 03:07:32 AM

Title: Handling parameter map when it returns nothing
Post by: lalitha.nov20 on 18 Jan 2016 03:07:32 AM
Hi All,

I have created a parameter map which returns a string against the login id provided. I works fine when it returns a value. the same throws an error when the user id is not in the parameter map.

any idea as to handle parameter map when it return null?

Thank you,
lalitha
Title: Re: Handling parameter map when it returns nothing
Post by: MFGF on 18 Jan 2016 04:43:19 AM
Quote from: lalitha.nov20 on 18 Jan 2016 03:07:32 AM
Hi All,

I have created a parameter map which returns a string against the login id provided. I works fine when it returns a value. the same throws an error when the user id is not in the parameter map.

any idea as to handle parameter map when it return null?

Thank you,
lalitha

You can specify a default value to be returned when there is no match. When editing the parameter map definition in Framework Manager, it is the dialog right at the top. If you set this to a value, you can then test for this in your report.

MF.
Title: Re: Handling parameter map when it returns nothing
Post by: lalitha.nov20 on 18 Jan 2016 10:44:38 PM
Thanks MF. I works... :)
8) 8) 8) 8) 8) 8)