Question
Murex
LB
Last activity: 20 Jul 2016 3:30 EDT
Question about Tree Grid
Hello,
So I have a Page-List within another Page-List, and I want to display this structure in a tree grid. When I add a tree grid layout and specify the source to be the Parent Page-List, all what renders is the data corresponding to the parent. Moreover, I cannot seem to find anywhere in the grid options to specify the child list.
My two Pages-Lists are of the same type, however, they have different names(So I have Page-List1 of type A and within it there is another Page-List2 also of type A; could that be the reason stopping the grid from automatically picking the embedded list?
Thanks,
Joe
*Message Edited by Marissa R to update Topic Categories
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Blue Rose Technologies GmbH
DE
Basically the prerequisite for Tree, Tree grid is that the pagelist property in nested levels should be of the same name as parent pagelist property. Lets take an example,
Country (pagelist class : Data-Country)
|- State (pagelist class : Data-State)
|- City (pagelist class : Data-City)
Now we need to create the pagelist property across different levels with the same name for the tree / tree grid to work as expected.
This is designed this way because the hierarchical data normally tend to share the same table in database (for ex. a tree displaying manager and employees reporting to them)
Murex
LB
Any Suggestions?
Pegasystems Inc.
IN
Hello Joe,
From query that you posted, my understanding is as below:
- Page-List1[Parent] of type A contains Page-List2[Child] of type A
- Page-List1 is configured to the source of the tree grid
- Actual Observation:
Page-List1(1)
Page-List1(2)
Page-List1(3)
.....
Page-List1(n)
- Expected Behavior:
Page-List1(1).Page-List2(1)
Page-List1(2).Page-List2(2)
Hello Joe,
From query that you posted, my understanding is as below:
- Page-List1[Parent] of type A contains Page-List2[Child] of type A
- Page-List1 is configured to the source of the tree grid
- Actual Observation:
Page-List1(1)
Page-List1(2)
Page-List1(3)
.....
Page-List1(n)
- Expected Behavior:
Page-List1(1).Page-List2(1)
Page-List1(2).Page-List2(2)
Page-List1(3).Page-List2(3)
.....
Page-List1(n).Page-List2(n)
Is my understanding correct? If yes, I will get back to you with the answer.
Also, could you please confirm the product version used at your end?
Regards,
Rincy
Murex
LB
Hello Rincy,
Sorry for the delayed reply; I'm used to the mesh sending us emails when a reply is posted so I didn't notice.
The actual observation you mentioned is correct. The desired behavior should be like:
Page-List1(1) and then beneath it and upon expanding that row, I get the Page-List1(1).Page-List2(1) item (the child item corresponding to that parent).
Moreover, supposing I have the need to display in the grid (be it a tree or normal repeat grid) only the Child Items of all the parents, whenever I try to specify the source of the grid to be the Child Page List, I get an error and am unable to save and proceed.
We are using 7.2 btw.
Thank you for your reply :)
Pegasystems Inc.
IN
Hello Joe,
A tree grid is a combination of a Tree and the Grid layout. It shows the hierarchical relationship we see in a tree and each row in the tree grid can display additional columns like a Grid.
While I am awaiting for answer to my queries, could you confirm if you have tried like below:
Create a parent pagelist property(Page-List1) pointing to ABC-Data-TypeA and then create a child pagelist property(Page-List2) in the ABC-Data-TypeA which points to ABC-Data-TypeA. In this way, the pagelist should reference the same class where it is defined to create a repeating structure that can have any number of children.
You can refer Pega Academy >> UI Specialist (7.1) >> Displaying Hierarchical Data >> Using Tree Grids.
Regards,
Rincy
Accepted Solution
Blue Rose Technologies GmbH
DE
Basically the prerequisite for Tree, Tree grid is that the pagelist property in nested levels should be of the same name as parent pagelist property. Lets take an example,
Country (pagelist class : Data-Country)
|- State (pagelist class : Data-State)
|- City (pagelist class : Data-City)
Now we need to create the pagelist property across different levels with the same name for the tree / tree grid to work as expected.
This is designed this way because the hierarchical data normally tend to share the same table in database (for ex. a tree displaying manager and employees reporting to them)
Murex
LB
This is what I ended up doing. It was the only thing left for me to try :P
Now looking for a way to display only the child items (in a normal grid)
Thanks for your reply! :)