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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]