开发者

Displaying a To-Many Relationship in a Table View

开发者 https://www.devze.com 2022-12-22 20:50 出处:网络
I\'ve got an application I\'ve been working on.There are projects and employees, projects can have several employees, employees can work on several projects.

I've got an application I've been working on. There are projects and employees, projects can have several employees, employees can work on several projects.

Right now I want selecting a project to display which employees are related to it, and allows开发者_如何学运维 me to add employees I select from another full-roster list. Somehow, this has proven more complicated, because (at least for now), selecting different projects still displays the same list of employees, as if all employees who'd been assigned to any project, belong to all of them.

What part of Master-Detail am I missing?


I figured it out: The relationship Array Controller needed to be bound by its "Content Set" not by its "Content Array".

0

精彩评论

暂无评论...
验证码 换一张
取 消