• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sorting "to many" relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Sorting "to many" relationship (From: "Thomas Grass (01SoftwareSolutions)" <email@hidden>)

  • Prev by Date: Sorting "to many" relationship
  • Next by Date: Re: Creating a Git Server
  • Previous by thread: Sorting "to many" relationship
  • Next by thread: New blog
  • Index(es):
    • Date
    • Thread