gridField with 2 joined entities query

Hi All,

I have to entities and I would like to create a gridField with their data

What is the best way to create a query with this join and then show the grid field  ?

 

Thanks

Elia  

  Discussion posts and replies are publicly visible

Parents Reply
  • I have found this solution

    a!gridTextColumn(
    label: "Type",
    field: "SubprojectType",
    data: apply( fn!index ,
    apply(
    rule!getDecoSpecByFlowID,
    index(
    local!datasubset.data,
    "ID",
    null
    ) ), "SubprojectType",null)
    )

    I get data of the second table ID by ID of the first table
    Then apply filter on the field of the secon table ...
    I don't know if this is a good solution because , I think, I get do a DB query on all fields each time I print a single Column ...
Children
No Data