Recursion of self-reference; how to?

3
I have a customer entity that contains representatives, head-offices, departments etc. I want to establish those relationships so I can see, in the customer-form, which customer is f.i. a head-office, see it's departments in a pop-up, pick one and return to the customer-form which then shows that department instead of the head-office. It should be possible to browse from department to a higher level, like it's head-office, the same way. Possibly even browse multiple levels through a customers company-structure in subsequent steps. Can't work it out how to make this happen in Mendix. Anyone any idea?
asked
2 answers
3

Next to using a self reference, this question and answer might help you out.

answered
1

You can just drag an association from and to the same object in the domain model. That will create a self reference.

answered