dbTalk Databases Forums  

Re: Setting a dimension's "All Level" to yes with DSO

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


Discuss Re: Setting a dimension's "All Level" to yes with DSO in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stefan
 
Posts: n/a

Default Re: Setting a dimension's "All Level" to yes with DSO - 04-08-2004 , 04:58 AM






Don't forget to set the memberkeycolumn to your "name" (i.e. "All Produkts").

This works for me (unusual programming language, but the pricipal is probably
the same).

dsoLvl = dso_dimension.getLevels().AddNew("All",#SubClassTy pes_sbclsRegular);
dsoLvl.setLevelType(#LevelTypes_levAll);
dsoLvl.setMemberKeyColumn(_levelName);

/Stefan

"Martin Mason" <martin.mason (AT) earthlink (DOT) net> wrote in news:OAf9JUWDEHA.2076
@TK2MSFTNGP09.phx.gbl:

Quote:
I think you have to add a level to the Levels collection of the Dimension
object with a LevelType of levAll.

"Kevin Dietz" <kevinbizbox1 (AT) earthlink (DOT) net> wrote in message
news:OHDoYiFDEHA.3344 (AT) tk2msftngp13 (DOT) phx.gbl...
When creating a dimension using DSO, how do I set the dimensions "All
Level"
property to Yes. By default, it sets it to No. Examples in DSO
Programmer's Reference don't explain.
- Kevin






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.