7911 Posts in 1354 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » FilteredDropdownSet and has_many relationships
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1438 Views |
-
FilteredDropdownSet and has_many relationships

17 December 2011 at 8:47am
Hi Unclecheese,
Just a quick question. I am trying to use FilteredDropdownSet(). Your example uses a has_one relationship so I don't know if it is even possible.
I have a Company Object which has a has_many relationship with Contact and the contact a has_one relationship with Company.
What I am trying to do is select a Company and then just show the members from that specific company for the user to select. This will then return the CompanyID and the ContactID for to record in the object.
Is this possible and I am just doing something wrong or is FilteredDropdownSet() not possible on has_many relationships?
Cheers,
Colin
| 1438 Views | ||
|
Page:
1
|
Go to Top |
