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

Qualifier help with ERXToManyQualifier (? or an alternative)


  • Subject: Qualifier help with ERXToManyQualifier (? or an alternative)
  • From: Mark Wardle <email@hidden>
  • Date: Sun, 16 Jan 2011 21:18:06 +0000

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... ?

"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

  • Follow-Ups:
    • Re: Qualifier help with ERXToManyQualifier (? or an alternative)
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: AjaxTabbedPanel ??? V2
  • Next by Date: Re: AjaxTabbedPanel ??? V2
  • Previous by thread: Re: Plugins system?
  • Next by thread: Re: Qualifier help with ERXToManyQualifier (? or an alternative)
  • Index(es):
    • Date
    • Thread