• 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: Need help with complex D2W query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with complex D2W query


  • Subject: Re: Need help with complex D2W query
  • From: David Holt <email@hidden>
  • Date: Tue, 27 Mar 2012 07:48:36 -0700

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 <email@hidden> 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      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
 _______________________________________________
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: 
 >Need help with complex D2W query (From: Markus Ruggiero <email@hidden>)

  • Prev by Date: Need help with complex D2W query
  • Next by Date: Most requested stuff on Google Moderator
  • Previous by thread: Need help with complex D2W query
  • Next by thread: Most requested stuff on Google Moderator
  • Index(es):
    • Date
    • Thread