COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => SDK => Topic started by: slop on 11 Sep 2009 08:07:51 AM

Title: How do you retrieve metadataModelPackage info for a ReportView's source Report
Post by: slop on 11 Sep 2009 08:07:51 AM
As I cycle through my ReportViews, I am trying to retrieve the package information for the associated source report. I can get the searchPath for the source path by including propEnum.@base (i'm using C#), however, this only returns the searchPath and storeId, but not the metadataModelPackage info. Here are the other properties I have included.

propEnum[] props = new propEnum[] { propEnum.@base, propEnum.owner, propEnum.contact, propEnum.searchPath, propEnum.defaultName, propEnum.model, propEnum.modelName, propEnum.metadataModelPackage, propEnum.packageBase};

baseClass[] bc = c8CMS.query(reportsPath, props, s, qo);

After retrieving the searchPath for the source report I could then query the report and get the metadataModelPackage info. However, this really slows these down. I'm hoping that I could get this in the original query.

thanks