dbTalk Databases Forums  

is it a bug? retrieving the level description using ADOMD.Net 9

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss is it a bug? retrieving the level description using ADOMD.Net 9 in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jéjé
 
Posts: n/a

Default is it a bug? retrieving the level description using ADOMD.Net 9 - 06-13-2006 , 12:43 PM






Hi,

I have finally found where is the description of a level using the ADOMD.NET
API...
this code return an empty string for system hierarchies (direct attributes
access) but works fine for user defined hierarhcies:

For Each olevel In ohier.Levels

Console.WriteLine(olevel.Description)

Next



but this code return the description of both user defined and system defiend
hierarchies:

For Each olevel In ohier.Levels

If olevel.LevelProperties.Count = 1 Then

Console.WriteLine( olevel.LevelProperties(0).Description)

else

Console.WriteLine(olevel.Description)

end if

Next



If I'm using the LevelProperties property of the Level object, I can get the
description.

but I don't understand why a direct call to "Level.Description" doesn't
returns the description of the level...

is it a bug in the API?



Jerome.





Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: is it a bug? retrieving the level description using ADOMD.Net 9 - 06-13-2006 , 04:19 PM






oups...
no...

finally I have found that my code return the description of the properties
of my level, not the description of the level himself.

please... anybody know where I can get the description ogf an
attribute??????

((


"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote

Quote:
Hi,

I have finally found where is the description of a level using the
ADOMD.NET API...
this code return an empty string for system hierarchies (direct attributes
access) but works fine for user defined hierarhcies:

For Each olevel In ohier.Levels

Console.WriteLine(olevel.Description)

Next



but this code return the description of both user defined and system
defiend hierarchies:

For Each olevel In ohier.Levels

If olevel.LevelProperties.Count = 1 Then

Console.WriteLine( olevel.LevelProperties(0).Description)

else

Console.WriteLine(olevel.Description)

end if

Next



If I'm using the LevelProperties property of the Level object, I can get
the description.

but I don't understand why a direct call to "Level.Description" doesn't
returns the description of the level...

is it a bug in the API?



Jerome.







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.