• 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 against target entity?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Qualifier against target entity?


  • Subject: Re: Qualifier against target entity?
  • From: Samuel Pelletier <email@hidden>
  • Date: Tue, 10 Dec 2013 08:23:05 -0500

Hi,

A simple solution is to add a line to your fetch method.

students = fetch Students where grade > 80 ;

students = ERXArrayUtilities.arrayMinusObject(students, studentToRemove);  <<— Line to add
return students;

Samuel

Le 2013-12-08 à 12:44, Ken Anderson <email@hidden> a écrit :

> No, I already have an EO I want to exclude...  Not an attribute of an EO.
>
>> On Dec 8, 2013, at 12:39 PM, Theodore Petrosky <email@hidden> wrote:
>>
>> Student.STUDENT_LAST_NAME.notIn("Smith")
>>
>> from what I see there is:    "in", "notIn", "inObjects", "noInObjects"
>>
>> is this what you are looking for?
>>
>>
>>
>>
>>> On Dec 7, 2013, at 11:01 PM, Ken Anderson <email@hidden> wrote:
>>>
>>> All,
>>>
>>> I know I’ve done this before, but I do it seldom enough that I can’t remember.  I want to create a qualifier to select a bunch of objects but to exclude one of the objects that might match the qualifier:
>>>
>>> Give me all the Students where grade > 80 and Student is not “Joe Smith”
>>>
>>> How do I do that again?  and is there any special whizzy wonder ERX Key to do it?
>>>
>>> Thanks,
>>> Ken
>>> _______________________________________________
>>> 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


 _______________________________________________
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 against target entity?
      • From: Ken Anderson <email@hidden>
References: 
 >Qualifier against target entity? (From: Ken Anderson <email@hidden>)
 >Re: Qualifier against target entity? (From: Theodore Petrosky <email@hidden>)
 >Re: Qualifier against target entity? (From: Ken Anderson <email@hidden>)

  • Prev by Date: Re: Inheritance and prefetching
  • Next by Date: Re: java.lang.IllegalStateException: Trying to check out a session twice in one RR loop
  • Previous by thread: Re: Qualifier against target entity?
  • Next by thread: Re: Qualifier against target entity?
  • Index(es):
    • Date
    • Thread