Using chapter 12 as I guide I have set up one table view that lists animal types (fish, turtle, squid etc) and a second table view that then lists specific animals within the selected type (leatherback turtle, green sea turtle, etc).
The problem I am having is getting the second view to properly filter from the database.
The data structure for the Animals list has a few attributes then a relationship called animalType that links to a second table that has just the types.
When I use a predicate that reads "animalType = 'Fish'" it returns nothing. When I use a predicate that reads "animalType = '1'" I get the list of fish I expect.
The property on the AnimalTypeEntity object returns the text version, which is as expected.
How do I get the SQLLite ID number that is needed for the filter to work? When I tried to implement the 'valueForKey:' syntax as shown on the bottom of page 393 I get an error saying "not formatted for key value pair" or something to that effect.
I am using the mmBusinessObject class.
Any help appreciated!
Steve