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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to