on 06-02-2010 8:12 AM
Hi,
How to create a hierarchy based on one dimension. For example: we have table:
Category
-
Category_ID
Parent_Category_ID
......
I want to create hierarchy, which like as:
Category_Level_1
Category_Level_2
....
Is it possible without create new alias of table for each level?
Thanks
OK, thanks
It's idea.
So far,I inserted a few alias of table (one per level in hierarchy). Idea with derived table has advantages, but also disadvantage.
Comparison "alias of table" and "flat hierarchy"
"Alias of table"
+ generated sql based is more optimal (amount of alias in sql is equal used level in hierarchy)
- you have to insert more table to Universed
"flat hierarchy"
+ one table (derived table)
+ more elastic
- generated sql isn't optimal
Thanks for your answer, my knowledge is greater now.
Slawek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for fast answer.
Version: BO XI r2
Sorry, I hadn't writen clearly.
My example table:
Category
-
Category_ID
Parent_Category_ID
Name
.....
Object: Category (from Category.Name)
I want hierachy like as:
Category (1)
Category (2)
Category (3)
etc.
Each level of hierarchy is from one object - Category
One category may has parent category, which may has parent category etc
Edited by: Slawomir Druzba on Jun 2, 2010 2:52 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which version of BO are you using?
Assuming that you are using BO XI R2 or above version.
And Is your question - how to create custom hierarchies in Universe Designer..... for two different fields (columns) taken from a single database table?
If so, yes you can create custom hierachy for above scenario. In Custom Hierarcies option: Add the Parent_Category_ID first and below that add Category_ID.
If you want to rename your hierarchy levels as Category_Level_1 & Category_Level_2, then rename their corresponding objects names in Clasess & Objects pane.
- Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.