COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: Invisi on 03 Feb 2017 08:22:59 AM

Title: Hide 'Business Layer' namespace in package
Post by: Invisi on 03 Feb 2017 08:22:59 AM
I just publish my first package based on only the business layer in my fresh model. Thing is that now in Report Studio I see 'Business Layer' and then my query subjects. This because when I make my package, I can't hide the namespace without hiding all its children also. How do I get rid of the useless 'Business Layer' text? I have done it once with another clients 2 years ago, but I forgot how.
Title: Re: Hide 'Business Layer' namespace in package
Post by: Lynn on 03 Feb 2017 08:47:25 AM
Quote from: Invisi on 03 Feb 2017 08:22:59 AM
I just publish my first package based on only the business layer in my fresh model. Thing is that now in Report Studio I see 'Business Layer' and then my query subjects. This because when I make my package, I can't hide the namespace without hiding all its children also. How do I get rid of the useless 'Business Layer' text? I have done it once with another clients 2 years ago, but I forgot how.

You can "Unselect Component and Children" at the root namespace of your project and then specify "Select Component" for any elements that you want to include.

This will generate an information message for all the query subjects when you validate the package saying something like:


BMT-MD-2005 This package contains Shortcut "[XYZ Namespace].[XYZ query subject]"
which references Query Subject "[XYZ Business View].[XYZ query subject]" by property 'Target Object Reference'.
However, "[XYZ Business View].[XYZ query subject]" is not included in the package.
To prevent reporting errors "[XYZ Business View].[XYZ query subject]" will be included in the published model,
but will be hidden from the report author.


I don't know if this is the best (or only) way to achieve the result so maybe others will chime in also. It can be a lot of clicking to select everything you need but otherwise it is not a big problem to manage.
Title: Re: Hide 'Business Layer' namespace in package
Post by: bdbits on 06 Feb 2017 09:47:05 AM
Lynn's method is what I have used, also. The messages are annoying, but it is the only way I am aware of to do this.
Title: Re: Hide 'Business Layer' namespace in package
Post by: raj_aries81 on 07 Feb 2017 07:09:41 PM
Quote from: Invisi on 03 Feb 2017 08:22:59 AM
I just publish my first package based on only the business layer in my fresh model. Thing is that now in Report Studio I see 'Business Layer' and then my query subjects. This because when I make my package, I can't hide the namespace without hiding all its children also. How do I get rid of the useless 'Business Layer' text? I have done it once with another clients 2 years ago, but I forgot how.

if objective is to hide the whole namespace, how about using object security and then deny access to everyone.that way you dont have to manually go and hide each query subject

Thanks
Raj
Title: Re: Hide 'Business Layer' namespace in package
Post by: Invisi on 09 Feb 2017 03:32:59 AM
Quote from: Lynn on 03 Feb 2017 08:47:25 AM
You can "Unselect Component and Children" at the root namespace of your project and then specify "Select Component" for any elements that you want to include.


YES!!!!! I lost the pesky useless namespace in between!

I already got the warnings of course, but I had a namespace that added nothing. Now the useless namespace is gone.