• 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: D2W Filtered search for embedded relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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+Control

Ramsey





 _______________________________________________
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: 
 >D2W Filtered search for embedded relationship (From: David Holt <email@hidden>)
 >Re: D2W Filtered search for embedded relationship (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: D2W Filtered search for embedded relationship
  • Next by Date: Ajax error if refresh page.
  • Previous by thread: Re: D2W Filtered search for embedded relationship
  • Next by thread: POJO and D2W / ERDCustomEditComponent subclasses
  • Index(es):
    • Date
    • Thread