cancel
Showing results for 
Search instead for 
Did you mean: 

4.0 SP 5 - How to determine a report's universes?

DellSC
Active Contributor
0 Kudos

In BO 3.1 I could cast an InfoObject as either a Webi or a Report and from there determine which universes the report used.  Since the Webi and Report classes are no longer available in 4.0, does anyone know how to get to this information without using the Web Services interface?  I've been working on this off and on for a couple of weeks, but I have been unable to figure it out.

Thanks!

-Dell

Accepted Solutions (1)

Accepted Solutions (1)

DellSC
Active Contributor
0 Kudos

Bump.... Does anyone have any info on this?  Thanks!

-Dell

DellSC
Active Contributor
0 Kudos

I finally figured this one out and thought I'd post my answer in case anyone else is looking for this.  You have to go to the Properties of the InfoObject and look for "SI_UNIVERSE".  You then go to the Properties of that Property to get the universe ID's.  The code looks something like this:

   

private void loadRptUniverses(InfoObject obj)

{

foreach (Property prop in obj.Properties)

  {

  if (prop.Name == "SI_UNIVERSE")

    {

   foreach (Property uprop in prop.Properties)

      {

           

//for some reason there seems to be a default property with a value of 1 - ignore it

    if (Convert.ToInt32(uprop.Value.ToString()) > 1)

        {

          <do something with the data....>

        }

      }

    }

  }

}

-Dell

Answers (0)