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

how to hide label of Presentation Layer in a package

Started by ry1633, 19 Jan 2016 10:53:03 AM

Previous topic - Next topic

ry1633

I'm working in Framework Manager 10.2.1 and working on a getting a new project set up in layers.   When I publish a package from my Presentation layer,  the result package has a label called "Presentation Layer" as a dropdown under which all of my query subjects are available.    This seems like it would be potentially confusing to my users.  Is there a way to hide the label for "Presentation Layer" in my package, so that just the query subjects are visible themselves.

I've looked up this issue, and the answers seem a bit unclear.   Just wanting some clarification as to if this is possible.

bus_pass_man

Do you mean that the label of the root node of package metadata tree is not what you want?

It is derived from the name of the package. 

In this picture the package is called 'blah'.

I really ought to read up on how to embed images Real Soon Now so you could see the picture rather than download the attachment.

cognostechie

Quote from: ry1633 on 19 Jan 2016 10:53:03 AM
I'm working in Framework Manager 10.2.1 and working on a getting a new project set up in layers.   When I publish a package from my Presentation layer,  the result package has a label called "Presentation Layer" as a dropdown under which all of my query subjects are available.    This seems like it would be potentially confusing to my users.  Is there a way to hide the label for "Presentation Layer" in my package, so that just the query subjects are visible themselves.

I've looked up this issue, and the answers seem a bit unclear.   Just wanting some clarification as to if this is possible.

When you select the objects that need to be part of the package, you can click on the highest level to deselect everything and then selectively pick the ones that you want. Look at the screenshot.

ry1633

Got it.  I had to fiddle with it a bit, but I think I got it.   Many thanks for the pointers :)

ry1633

When I deselect 'Presentation Layer' but select all the child items underneath it for my package, it works fine.   But it also gives some informational warnings that look like this.   

BMT-MD-2005 This package contains Shortcut "[Presentation Layer].[Agent In Product Code]" which references Query Subject "[Business Layer].[Agent In Product Code]" by property 'Target Object Reference'. However, "[Business Layer].[Agent In Product Code]" is not included in the package. To prevent reporting errors "[Business Layer].[Agent In Product Code]" will be included in the published model, but will be hidden from the report author.

The package itself functions OK, but I can never get these warnings to go away even after I go through and Verify Model.  Is it ok to leave them be?

bus_pass_man

Yeah it's just noise.  The message is just saying, 'You've got stuff in your package which needs to use stuff which isn't in your package and so FM will include the stuff in the package so it will work.  The stuff will be hidden.'

You can get rid of it by two ways.  One would be by deleting whatever you have in your package which is using the referenced stuff.  In your case deleting the Shortcut "[Presentation Layer].[Agent In Product Code]".  This has a fairly obvious drawback. The other would be by including the referenced object -- in your case [Business Layer].[Agent In Product Code]-- in the package and hide it.  The latter is basically what FM is doing for you already but it reduces the noise you need to deal with.

ry1633

How do you include something in a package and still hide it from the users.  That part I never quite followed very well.

bus_pass_man

In the package editor you can define any of 3 inclusion states for objects in your model.  They are include, hidden, and exclude.   

Hidden includes the object in the package but it is hidden from the package consumers.   Exclude will exclude the object from the package unless the excluded object is used by an object included in the model.  Then the excluded object will be included in the package but hidden.  The UI will not change.   You will get a message saying that, which you encountered.