Can we add new sub rows in to appian Tree Grid

I've implemented an appian tree grid (https://docs.appian.com/suite/help/20.1/recipe-expand-collapse-rows-in-a-tree-grid.html)

I've a requirement to add main row and sub-row in to the tree grid. 

  

I could create a new main row eg: PR3 using addRowlink option. How can I add new sub row eg: Item 4 inside PR1 ?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to AllenP

    The structure is already created in the code you have in the documentation. If you would like to add more rows to be shown in the grid, the data in the local variables local!prs and local!items should contain new values. local!prs which queries PurchaseRequest should have PR 3 and local!items which queries PurchaseRequestItem should have rows where the purchaseRequest.id is 3.

Children
No Data