Hello Guys,
I am stuck in my project for a while and decided to contact you guys for ideas because am short of ideas how to get it done. This is the task: I have information like this from the server and have to present the information in a tree form structure to the user. The data from the server comes in this form:
APP net main
Account net main
Address net main
APP net main
Person book optel
Person book ggggg
Person book show
Bindings apple parse
Bindings apple findProject
Bindings apple show
The positions of the columns is not fixed. The first column can become the second or the third depending on the preference of the user.
1) The task is this: In each row , the first data must be the parent of the second data, the second data must be the parent of the third data and if there appears to be a fourth data then it will be the child of the third and it follows like that...... I have to be able to build this tree like structure whiles am looping over the information from the server.
It start from the left handside(column) , i mean the left column will be the first parent. I must present the information from the server in a tree-like form like this:
APP
net
main
Account
net
main
...
Bindings
apple
show
etc etc...
Optional Requirement :: And if it is possible i must also be able to use the structure to create a table.
I have spent much time(weeks after weeks) figuring how to begin but am not getting it so am asking if someone can help me with ideas how to get this done or point me to a tutorial where i can have a deep understanding of how i can do it.
A friend of mine suggested using linkedlist but i don't know if he is right and if he is right how do i use it.
I am asking you guys to help me with ideas so that i can implement it.
Thank for your help.