I'd like to build a text field using LIST_LINE, so that in a User record (on a grid), I can see the Facilities he is associated with.
Facility has many Dept.
Dept. has many Users
Users can be in Many Dept.
User.FacilityString = LIST_LINE ( xxx ) // Note, if the LIST_LINE confuses you, just focus on the Query Part: FIND Facility WHERE EXISTS....
Result string should be: (example) "Acme Hospital, Express Care of Boston, Wilson Family Care"
Note: It would be easy to get JUST the Departments, but its less useful (example: "OR, Oncology, OR, Radiology")
because the Department Name doesn't specify the Facility. This string COULD BE "OR (Acme), Oncology (Acme), OR (Wilson), Radiology (Wilson)" but you see the Facility repeated. In this case, I'd only want "Acme, Boston" as the solution.
