Re: D2W Filtered search for embedded relationship
Re: D2W Filtered search for embedded relationship
- Subject: Re: D2W Filtered search for embedded relationship
- From: David Holt <email@hidden>
- Date: Wed, 20 Oct 2010 14:14:21 -0700
Wow, now that is powerful stuff.
This rule:
100 : (pageConfiguration = 'QueryEmbeddedDocument' and entity.name = 'Document') => queryDataSourceDelegate = "ca.company.delegates.SpecificDocumentsQueryDataSourceDelegate" [er.directtoweb.ERDDelayedObjectCreationAssignment]
plus modifying your example qualifierFromSender method to:
private EOQualifier qualifierFromSender(ERD2WQueryPage sender) { Category cat = Category.cat(); EOQualifier q = Document.CATEGORY.eq(cat).and(sender.qualifier()); return q; }
Gives me the behaviour I need.
Thanks for the heads up (again) Ramsey.
d On 2010-10-20, at 1:29 PM, Ramsey Gurley wrote: On Oct 20, 2010, at 2:46 PM, David Holt wrote: Hi all,
I have a relationship on my edit page that shows "Search" and "New" buttons. The "Search" button, returns all related items, but I need it to be qualified by the logged in user (i.e. not show everyone's items). How do I do that?
David
ERDQueryDataSourceDelegateInterface? http://wiki.objectstyle.org/confluence/display/WO/D2W+Flow+ControlRamsey
|
_______________________________________________
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