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?
*Message Edited by Marissa R to update Topic Categories
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.
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.