Tree widget for a child-parent table

Hello,
I’m looking for a widget to manage a child/parent table.
I found this discussion 🌲 tree widget, for a self referencing table? but the links seem to lead to a Grist document that doesn’t work!
Can someone help me?
The goal is to have a widget that allows you to graphically modify the tree structure.
Thanks in advance.

the widget you linked is a self referencing table. Each widget is connected to a SINGLE table and can only get data from that table by errr… natural means.

But you want a child/parent table. That is much harger.

You will have to use the Plugin API, fetch data from your entire document, select only the data from the child table you want… it’s complicated because it first gives you the names of tables all over your document.

then it brings the names of each column… for each table.

then it brings again each table, with the type of each column.

the data is very complicated to read, so you will probably have to program some way to STRUCTURE that data in a more natural format, maybe almost a CSV format, for your widget to read it.