Code to add dimenions to the rows in version 10.3 was this:
_flatDataSource.Rows =
);
This does not worka nymore in 11.1...How am I suuposed to add Dimensions to the rows dynamically now...?
Hello,
In 11.1 you can set up more than one hierarchy over a single dimension. Basically if you haven't set your own the default unique name of the first hierarchy is constructed and in your case it should look like this: [Asset Class].[Asset Class]You can look at online samples for FlatDataSource where the initialization is set in this way.
Best regards.PPilev.
I am trying to add two domensions onto rows (what is its relationship with hierarchy here..?). I do not want to set up more than one hierarchy here.
If I wante to add Asset class in a row in code behind..(I am using Excel file BTW)..how would we acheive this now and what has exactly change from 10.3 ..?
What I’m trying to say is that the only difference in v11.1 is that you have to specify the unique name of the hierarchy now. In v10.3 is enough to set the unique name of the dimension because there is just one hierarchy in this dimension. Don’t worry about the multiple hierarchies here and in your case that should work fine:
DataSourceBase.GenerateInitialItems("[Asset Class].[Asset Class], [Trading Desk].[Trading Desk]" );
Let me know if you still have any troubles with this.
Regards.
PPilev.
Got it. Thx.