Rank: Newbie
Groups: Registered
Joined: 2/19/2018(UTC) Posts: 4 
|
Hi, We would like to display a list of records with a structure parent/children. In the DB source, there is the column with the ParentId.
Any way to do this in MT ?
Thanks
Fred
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 480
Was thanked: 81 time(s) in 81 post(s)
|
Of course. Simply two growing tables within each other Take a look at this post https://support.mobileto...g=posts&t=1100000311
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/19/2018(UTC) Posts: 4 
|
Thanks bbv for your suggestion. This works for one single level of Parent-Children. But my need is to display a multilevel parent-children structure.
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 480
Was thanked: 81 time(s) in 81 post(s)
|
This is also possible, of course, but requires a little more understanding of XPath. In attached sample I'm loading all rows from the database and building hierarchy using a recursive function call. I'm then displaying the hierarchy using two tables - the inner table uses level to calculate width of column.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/19/2018(UTC) Posts: 4 
|
|
|
|
|
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.