Re: Sorting "to many" relationship
Re: Sorting "to many" relationship
- Subject: Re: Sorting "to many" relationship
- From: Johann Werner <email@hidden>
- Date: Fri, 12 Oct 2012 14:28:35 +0200
Hi Thomas,
use ERXS.sorted(aOpDay.ophours(), OpHours.MY_SPECIAL_ATTRIBUTE.ascs()) from Wonder or the method aOpDay.ophours(null, OpHours.MY_SPECIAL_ATTRIBUTE.ascs(), false) that is automatically created for you by the eogenerator templates.
jw
Am 12.10.2012 um 14:23 schrieb Thomas Grass (01SoftwareSolutions) <email@hidden>:
> Hi WO-Developers,
> i've an EO "OpDay" with an relationship to many "OpHour"'s.
>
> In use i am able to call an array of OpHour's with the following command:
>
> aOpDay.ophours()
>
> This works fine, but i need to have the OpHour's sorted by special attributes. Is there a "nice" way to do this, without creating a fetch or order it on my own?
>
> Thank you,
> Thomas
_______________________________________________
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