Application Builder: how to display self-referencing tables as a tree grid (and master-detail)? Looking for advanced examples

Hi everyone,

I’m building applications with the Baserow Application Builder, and I’m running into limits with how data tables can be displayed. My main need is to present a table that references itself (a “parent” link field pointing to another row of the same table) as a tree grid, with hierarchical rows that can be expanded and collapsed over several levels. I’d also like a master-detail layout, where selecting a row updates a detail area showing the record and its related rows.

I’m looking for advanced examples and templates showing how far this can be pushed.

What I’m trying to achieve in my application pages:

  • A tree grid built from a self-referencing link row field (parent / children), with expand and collapse at each level
  • A master-detail layout: selecting a row in the master table updates the detail area, including related (linked) data
  • Rich column control: show/hide, reorder, and format values per column
  • Interactive exploration: user-driven filtering, sorting, and search

My questions:

  1. Are there advanced templates or example applications showing tree grid or master-detail patterns? Any public applications I can duplicate and study?
  2. How would you display a self-referencing table as a hierarchy today with the existing elements (table, repeat, collection fields, custom CSS or code)? Is there a recommended workaround for recursive levels?
  3. What is the best way to build a master-detail page (row selection driving a detail panel, shared filters, detail pages)?
  4. Is there a roadmap or feature request thread for hierarchical display in the Application Builder?

My use case is an audit-style database with several tens of thousands of rows across linked tables, including self-referencing structures, where users need to move quickly from a global overview down to the detail of a single record.

Any pointers, links, or example workspaces would be very welcome. Thanks in advance!

Best regards,

Hello @CVO, Baserow supports linked records, filtering, sorting, and basic master-detail patterns. But, a fully interactive tree grid with expand/collapse isn’t currently supported natively. You can work around some of this with nested Repeat elements, separate detail pages, or custom JavaScript.

Hi,

Thanks for the clarification, that’s very helpful.

For context: hierarchical and master-detail table displays are among the main strengths of tools like Retool and Notion. For compliance reasons (data sovereignty and self-hosting), I am currently evaluating Baserow as an alternative and this is the main functional gap I have identified so far.

I looked at the public roadmap, but I couldn’t find clear information about upcoming UI elements or controls for the Application Builder, and I found few feature requests on this topic.

Could you help with the following?

  1. Is a native tree grid (expandable/collapsible hierarchical rows, for example for self-referencing tables) planned or under consideration for the Application Builder?
  2. Is there a place where planned Application Builder elements are tracked (a roadmap section, a changelog, or a dedicated feature request category)?
  3. If there isn’t an existing request for this, what is the best way to submit one so that others can vote on it?

I’m happy to open a dedicated feature request for the tree grid if that’s the preferred route.

Thanks again!
CVO

Hi,

I am building a personal app that uses what you describe: a self-referencing table using a parent field, and I have come across the following limitations:

A field referencing its own table cannot create a “related field in linked table”.

This prevents the possibility of automatically referencing children as a field in the same table (which would be the first step for a tree).

Workarounds : create an automation (not really handy in my opinion), or create a second table linking the first table with itself, definining witch one is the parent and which one is the child (this makes possible to automatically get the the parent and the children in the first table, and opens way more possibilities but doubles the number of rows).

Nesting repeat elements is limited to 2 levels

The application builder itself does not prevent this (you can add a repeat element within a repeat element within a repeat element…), but unless I did not see the proper way to do it, the limitations on how data are linked to repeat elements prevents going further than a second level.

Because you can only add a “data source” to the first level (parent) of a repeat element, and a field of the first data source in the second level, and those fields have no fields, you cannot choose data to display in the third level and beyond.

I haven’t found this topic coming up in the forum, and I might have missed a way to do it, but if not this is actually a serious limitation for repeat elements.

Custom javascript might do the trick

Building the tree from the table with its parent field with custom javascript is quite easy. But I don’t see how Baserow would let you use and display it. Nested repeat fields would work (manually creating each level) as a child would always be like a field of its parent, but this would require repeat fields to accept your custom tree as a data source, which I think is not possible.

Thus you would have to integrate custom code on the page to display, which I understand from these templates Custom code demos is only possible by building everything in JS and CSS classes, which seems weird to me, as I’ve been used to more flexibility on data injection in other low code site builders.

I would be glad to be corrected on any misconception I’d have on this.

I hope it helps!

Oh, and you can add feature ideas in this thread: Feature Ideas - Baserow

Hi

Thanks for raising this. As far as I can tell, you’re not missing anything.

What always surprises me is how little attention most tools on the market give to this kind of structure, given how widespread it is. Parent-child hierarchies are everywhere in business data: charts of accounts in a general ledger, bills of materials, cost center and org structures, asset and location hierarchies in Maximo, and much of the master data in SAP. Yet vendors tend to sidestep the topic rather than offer a real solution, and users end up with junction tables, automations or custom code.

Having worked for many years with tools where hierarchies are a first-class concept, I think native support in Baserow wouldn’t need to be exotic:

  • Recognize a self-referencing parent field as a hierarchy, and traverse it top-down from the root nodes (rows with no parent). The parent link alone is enough: there’s no need to store or maintain the children explicitly.
  • Recursive lookups and rollups: sum a value over all descendants, or get the full path up to the root. That’s exactly what a GL roll-up or a BOM explosion needs.
  • A tree view in the grid, with expand/collapse.
  • In the Application Builder, a repeat element that can recurse on that hierarchy, whatever the depth.

This is precisely the kind of gap that keeps no-code tools out of finance departments and industrial production, where hierarchies are the backbone of the data. Closing it would open those use cases to Baserow.

Regards