COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: karthik.cognos on 01 Sep 2015 04:43:03 PM

Title: extracting package xml from fm model.xml file
Post by: karthik.cognos on 01 Sep 2015 04:43:03 PM
Hi,
My Cognos FM model has 2 packages in it and I was looking to extract xml specific to a package from the model.xml file...Is this possible?

Thanks,
KC
Title: Re: extracting package xml from fm model.xml file
Post by: bus_pass_man on 01 Sep 2015 07:13:43 PM
I'm guessing you want to generate a report which lists what objects are included in each package. 

It isn't something you can get directly.   Packages point to security views and security views contain collections of objects which have been explicitly included, excluded, and hidden.  Objects which implicitly included, excluded, or hidden through inheritance of its parent (or another ancestor container ) inclusion state are not listed.  To make things more complicated you can explicitly exclude an object from the package but it can be included in the package if an object which is in the package uses object references from  the excluded object.   

There's functionality called model report which you might want to explore.   

If a package contained a list of all the objects in the model and their inclusion state for that package you would very rapidly bloat the model by nx where n is the number of packages and x is the size of the model.