Re: Qualifier for date
Re: Qualifier for date
- Subject: Re: Qualifier for date
- From: Peter Vandoros <email@hidden>
- Date: Wed, 30 May 2007 11:32:00 +1000
Hi Ted,
Just combine the two EOQualifiers using the EOAndQualifier (or
EOOrQualifier).
Eg.
EOQualifier q1; // your first qualifier
EOQualifier q2; // your second qualifier
EOQualifier finalQualifier = new EOAndQualifier( new NSArray( new
EOQualifier[] { q1, q2 } ) );
Regards
Peter
Ted Archibald wrote:
Hi,
I've been trying to figure out how to do qualifiers for dates and am
having no luck.
If I want to get all the EOs for the month of April 2007, I currently
have to use two qualifiers. One that is greater than or equal to
April 1st and one that is less than or equal to April 30th. Is there
a way I can do it just like SQL, e.g. "date LIKE '2007-04%'".
Can you only do this with an EOQualifier or can you do this in the
Fetch Spec Qualifier in the model?
--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.
------------------------------------------------------------------------
_______________________________________________
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
--
Peter Vandoros
Software Engineer
Etech Group Pty Ltd
Level 3/21 Victoria St
Melbourne VIC 3000
Australia
Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
----------------------------------
IMPORTANT: This e-mail message and any attachments are confidential and
may be privileged. If received in error, please reply to this message
and destroy all copies and any attachments. You should check this
message and any attachments for viruses or defects. Our liability is
limited to resupplying any affected message or attachments. For more
information about Etech Group, please visit us at
http://www.etechgroup.com.au.
_______________________________________________
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