• 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
WODisplayGroup fetches on load issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WODisplayGroup fetches on load issue


  • Subject: WODisplayGroup fetches on load issue
  • From: David Holt <email@hidden>
  • Date: Wed, 07 Nov 2007 15:10:22 -0800

Hello all,

How do I get a WODisplayGroup's first fetch using "fetch on load" to use a querybinding in the named fetchspec?

I was debugging the SQL generated because the component seemed awfully slow to load and I found out that as my component loads it is actually causing 2 fetches: the first fetches all the Artifacts (a product of the "fetch on load"), then immediately afterwards a second one uses the queryBinding and fetches the subset I want. I put this code in the component's constructor:

Session session = (Session)session();
artifactDisplayGroup.queryBindings().setObjectForKey(session.appPermission,"applicationPermission");
artifactDisplayGroup.qualifyDataSource();

When I turn off "fetches on load" and trigger the first fetch from the component, the response is instantaneous (which is the behaviour I'm looking for :-) )

Thanks,
David
 _______________________________________________
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

  • Follow-Ups:
    • [Solved] WODisplayGroup fetches on load issue
      • From: David Holt <email@hidden>
  • Prev by Date: Re: JavaEOGenerator and Java Client
  • Next by Date: Re: Slogan
  • Previous by thread: Practical WO Demo App
  • Next by thread: [Solved] WODisplayGroup fetches on load issue
  • Index(es):
    • Date
    • Thread