Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
fred27  
#1 Posted : Wednesday, May 16, 2018 12:45:28 PM(UTC)
fred27

Rank: Newbie

Groups: Registered
Joined: 2/19/2018(UTC)
Posts: 4
France

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
bbv  
#2 Posted : Thursday, May 17, 2018 3:46:10 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 363

Was thanked: 59 time(s) in 59 post(s)
Of course. Simply two growing tables within each other

Take a look at this post
https://support.mobileto...g=posts&t=1100000311
fred27  
#3 Posted : Friday, May 18, 2018 7:19:12 AM(UTC)
fred27

Rank: Newbie

Groups: Registered
Joined: 2/19/2018(UTC)
Posts: 4
France

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.
bbv  
#4 Posted : Friday, May 18, 2018 10:08:38 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 363

Was thanked: 59 time(s) in 59 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.
File Attachment(s):
HierarchyDisplay.zip (3kb) downloaded 9 time(s).
fred27  
#5 Posted : Friday, May 18, 2018 12:28:25 PM(UTC)
fred27

Rank: Newbie

Groups: Registered
Joined: 2/19/2018(UTC)
Posts: 4
France

Perfect
Thank you !
Users browsing this topic
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.