• 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: DisplayGroup Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DisplayGroup Question


  • Subject: Re: DisplayGroup Question
  • From: Reid Bundonis <email@hidden>
  • Date: Tue, 1 Jul 2003 21:20:20 -0400

Art and George, thanks for the tips. I dropped the debug into my project and got this back:

<com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT t0.PLANT_ID, t0.PLANT_NAME FROM PLANT t0">

No sort, just the select. As you can guess, I am using MySQL as the database and have the 2.0.14 mysql adaptor.

That is a handy little debug trick. Thanks. And George, the displayedObjects() binding did the trick. That is odd. I've always use allObjects() and never paid any attention to displayedObjects(). In about two sentences, can you define the difference, other than one supports a sort and one does not.

Anyway, thank you both. I am all jazzed up after WWDC. To every one on the list, keep the great discussions going.

Reid


On Tuesday, July 1, 2003, at 06:55 PM, Art Isbell wrote:

On Tuesday, July 1, 2003, at 11:27  AM, Reid Bundonis wrote:

When I create the DisplayGroup, I check "fetches on load" and then select sorting by the entity item in ascending order. I am not using a fetch spec. Yet, the sorting does not work. ??? Is there a trick to make it work, or do I need to use a fetch spec that defines the sort order?

I don't know the answer for certain, but I doubt that you'd need to set a sorting fetch spec in the display group's configuration. That wouldn't make sense.


When any unexpected DB behavior occurs, I add the "-EOAdaptorDebugEnabled true" launch flag to PB so I can check the SQL being generated by EOF. Does the SQL for this fetch include a SORT clause?

Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: DisplayGroup Question
  • Next by Date: Re: DisplayGroup Question
  • Previous by thread: Re: DisplayGroup Question
  • Next by thread: Re: DisplayGroup Question
  • Index(es):
    • Date
    • Thread