• 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: Qualifier help with ERXToManyQualifier (? or an alternative)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Qualifier help with ERXToManyQualifier (? or an alternative)


  • Subject: Re: Qualifier help with ERXToManyQualifier (? or an alternative)
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 17 Jan 2011 12:45:15 -0800

Hi Mark,


On Jan 16, 2011, at 1:18 PM, Mark Wardle wrote:

> Hi there.
>
> I'm defining some export stuff within a property list and wish to
> include an arbitrary qualifier during the export of arbitrary entities
> (* see below)
>
> I usually generate qualifiers in code and so am not particularly
> familiar with generating qualifiers from a qualifierFormat string and
> some bindings.
>
> For instance, I wish to qualifier a fetch specification based on
> user's membership of certain projects. Patients are also member of
> particular projects.
>
> NSArray<Project> projects = currentUser().projects()   // defined
> elsewhere as the list of projects that this user is a member of
> EOQualifier qual = Patient.ENTITY_NAME, new
> ERXToManyQualifier(Patient.PROJECTS.key(), projects, 1));
>
> How would I represent this as text... ?

I don't think that you can.  The EOQualifier JavaDocs state "The operators you can use in constructing qualifiers are =, ==, !=, <, >, <=, >=, "like", and "caseInsensitiveLike"."

I am not aware of any way to extend this.

You may be able to create them in code and then use the Serializable interface to get a text version.  I have never tried that.


Chuck


> "projects containsAny %@"
>
> I note ERXToManyQualifier doesn't implement qualifierWithBindings().
>
> I was even considering looking at a selector although I can't find
> much documentation on this...
>
> Many thanks,
>
> Mark
>
>
> (*) this is an example property list for these exporters:
>
> (
>        {
>            entityName = "Patient";
>            qualifier = "projects contains %@";
>            keyPaths = (
>                {   keyPath = "id"; },
>                {   keyPath = "patientIdentifier"; },
>                {   keyPath = "status"; },
>                {   keyPath = "currentAge"; },
>                {   keyPath = "sex"; },
>                {   keyPath = "mother"; },
>                {   keyPath = "father"; },
>                {   keyPath = "dateDeath"; },
>                {
>                    keyPath = "currentAddress.postcode.localHealthBoard.name";
>                    columnName = "localHealthBoard";
>                }
>       }
> )
> --
> Dr. Mark Wardle
> Specialist registrar, Neurology
> Cardiff, UK
> _______________________________________________
> 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

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Qualifier help with ERXToManyQualifier (? or an alternative)
      • From: Mark Wardle <email@hidden>
References: 
 >Qualifier help with ERXToManyQualifier (? or an alternative) (From: Mark Wardle <email@hidden>)

  • Prev by Date: Re: AjaxTabbedPanel ??? V2
  • Next by Date: Re: AjaxTabbedPanel ??? V2
  • Previous by thread: Qualifier help with ERXToManyQualifier (? or an alternative)
  • Next by thread: Re: Qualifier help with ERXToManyQualifier (? or an alternative)
  • Index(es):
    • Date
    • Thread