Home
Analytics
Hierarchical representation (Tree view) of data
Prathibha
Hi All,
Is there any way to represent data in Hierarchical manner (ie.) a tree structure.
ddd(2.1.)
bbb(2)
eee(2.2)
aaa (1)
ffff(3.1)
ccc(3)
ggg(3.2)
The tree grows horizontally, not vertically as in usual cases.
Thanks and Regards,
Prathibha.
Find more posts tagged with
Comments
bhanley
This is not something BIRT supports now via a native control that you can embed in a report. You can achieve this inside a report using JavaScript embedded in a Text control set to HTML output.
Idefix
This question is very interesting for me too.
I have a simple tree structure like the Windows File Explorer with directories and files.
In my database this tree structure is represented by a parent child relation table.
I would like to show these data as a "tree structure like" view in BIRT.
Is that possible ?
I red your reply, but I do not understand it.
Could you post a small and simple example, please ?
slemaster
I believe there is an OOTB maximo report called workorder hierarchy that accomplishes what you are trying to do.
From what I can tell, it nests tables inside of each other and each nested table is indented more than the table it sits inside of.
If you don't have access to the rptdesign i could post it for you.
Idefix
I have no access to this report design.
Therefore it would be great if you could post it.
Thank you for your fast reply !
slemaster
attached...
KavithaD
Hi,
I am also having same requirement.but i could not able to open your rpt file
Please help me
Thanks & regards
Kavitha
-victor-
Please bhanley, can you expand your suggestion and may be give a little extract of code. Thank in advance.
Victor
johnw
I've done this in the past using a combination of client side Javascript and event handling.
Basically, it would entail populating some sort of Collection in the onFetch method, then using the Text element set to HTML, and using any number of Javascript libraries out in the wild to build the tree view. I used GWT for my example.
I've also done this same thing using BIRT to populate a tree view in a SWT form for the desktop.
I unfortunately don't have either to post, but that should point you in the right direction.