Just went through this myself. If you set *ref* as the query entity, you'll 
find your queries lose their complexity.

Ref.comment contains blah.
Ref.param = A

Etc. Etc.

If it works, thanks to David LeBer for the idea!

David

Sent from my iPad

On 2012-03-27, at 7:16 AM, Markus Ruggiero <mailingli...@kataputt.com> wrote:

> At the moment I probably do not see the forest for the trees anymore.
> 
> I have the following model: edoc <-->> ref <<--> param
> 
> params is a fixed pool of given objects A, B, C, etc out of which an edoc can 
> reference any number of them. When such a reference is established the user 
> must add some comment text to the ref.
> 
> My query problem:
> 
> The user sits on the edoc query page in a D2W app and wants to find all edocs 
> that match some attribute on a ref, possibly in conjunction with other 
> selection criteria based on edoc attributes. The user interface is as such 
> that there is a list of all possible param assignments with a text field 
> each. The user may now want to find all edocs that have a particular 
> assignment to one or more params and the comment field on the ref-object 
> contains "xyz". I have to build a query that may look something like 
> select from all edoc where edoc has a ref to a given param and the ref has a 
> comment field that contains "xyz".
> Actually it could be even more complex: the user might specify several 
> comment values resulting a query like "where the edoc has a ref to param A 
> with comment value xyz or the edoc has a ref to param B with comment value 
> PQR or the edoc has a ref to param E with comment value STU...". Oh, and the 
> user might want to specify other qualifying values for the edocs he/she is 
> looking for.
> 
> Any idea how to construct a proper query to qualify the display group for 
> such a QueryEDoc pageConfiguration? I guess I would need to have a custom 
> property level query component with key and displayGroup bindings. But 
> then...?
> 
> Thanks a lot
> ---markus---
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
> 
> This email sent to programming...@mac.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to