limiting popupbutton list with a fetchSpec
limiting popupbutton list with a fetchSpec
- Subject: limiting popupbutton list with a fetchSpec
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 29 Jan 2015 09:12:51 -0500
I have an Entity Person that has a toMany to Book.
When I click the ‘new’ button in my EditRelationshipEmbeddedBookPerson I want to limit the popupButton to only those books that this person should see.
The Person has an instrument. The Book has an instrument. so the popup list should be only those books with the same instrument.
But one layer deeper. a Person is assigned to one or many Shows. the Books belong to a show. So if Person 1 only play one show and plays viola (I know its a handicapped Person), the popup list only shows that one book as available to assign.
I don’t see how to create a fetch spec that i can pass in my Person and limit the popup list.
Am I clear? We could change the instrument if thinking its a Viola makes one squeamish!
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden