on 02-27-2013 10:55 PM
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
Bump.... Does anyone have any info on this? Thanks!
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.