Re: Qualifier against target entity?
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