Re: EOSortOrdering and keypaths [SOLVED]
Re: EOSortOrdering and keypaths [SOLVED]
- Subject: Re: EOSortOrdering and keypaths [SOLVED]
- From: Chuck Hill <email@hidden>
- Date: Sun, 20 Jun 2010 20:07:50 -0700
Or ERXQ.keyPath(Booking.PERFORMANCE, Performance.PERFORMANCE_TYPE, PerformanceType.NAME)
On Jun 20, 2010, at 7:29 PM, Travis Britt wrote:
> Or Booking.PERFORMANCE.dot(Performance.PERFORMANCE_TYPE).dot(PerformanceType.NAME).key()
>
> tb
>
> On Jun 20, 2010, at 12:47 PM, Andrew R. Kinnie wrote:
>
>> Wow, you guys didn't even give me time to heat up some nachos for lunch. I figured it was blindingly obvious, and I figured that would be the key path, my problem seems to have been that I was creating this in a static method on my Booking class for its default sort ordering . . . and I was confusing myself. So now I have Booking.PERFORMANCE_KEY + "." + Performance.PERFORMANCE_TYPE_KEY + "." + PerformanceType.NAME_KEY
>>
>> Though really, hardcoding it as performance.performancType.name seems MUCH clearer. :-/
>>
>> Seems to work now now that I know that this was as easy as I thought it should be. Thanks for the help!
>>
>> On Jun 20, 2010, at 12:31 PM, Chuck Hill wrote:
>>
>>>
>>> performance.performanceType.name
>>>
>>>
>>>
>>>> Any ideas would be appreciated. This seems like it should be obvious, but I'm drawing a blank.
>>>>
>>>> Andrew
>>>
>>> --
>>> Chuck Hill Senior Consultant / VP Development
>>>
>>
>> On Jun 20, 2010, at 12:38 PM, Luke Holton wrote:
>>
>>> If you are performing the fetch on the Bookings entity, providing the EOSortOrdering with the keys path "performance.performanceType.name" should do the trick. Have you tried that?
>>>
>>> Regards,
>>>
>>> Luke Holton
>>> Tel: 602-279-4600 ext 622
>>> Fax: 602-279-4768
>>> Desert Sky Software: www.desertsky.com
>>>
>>> Specializing in the design, development and hosting of database driven web applications.
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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