>>
>>My case was easier because I had only one child table (the behavior is by design - anytime I had more child tables, life began to complicate). Actually, having more child tables would require having them registered somewhere, and running code (like mine or some other) for each one of them.
>
>I just found out about adbobjects(laRelations,'RELATION') that produces a list of relations for the DBC, that way you don't have to register the children anywhere.
So they are registered in the DBC. That's better, because in my answer I couldn't have relied on the fact that all the children will be registered there; from what you said I thought there may be some plugin free tables and other things, so couldn't be sure DBC can be used in your case.