• 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
EOQualifier and ERXKey question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOQualifier and ERXKey question


  • Subject: EOQualifier and ERXKey question
  • From: Andrew Kinnie <email@hidden>
  • Date: Mon, 25 Apr 2011 16:43:23 -0400

Not sure if this is doable.  I have an entity (Notification) with an attribute for createDate and another for minutesToExpire which is an Integer and has a default, but can be changed.

I need to create a qualifier where I get all notifications where the createDate is after now - minutesToExpire

I have this for my qualifier, but it doesn't work because I am performing an operation on an ERXKey for the minutesToExpire attribute (I marked this with [???]).

ERXRestFetchSpecification<Notification> fetchSpec = new ERXRestFetchSpecification<Notification>(
Notification.CREATE_DATE.after(now.timestampByAddingGregorianUnits(0, 0, 0, 0, Notification.MINUTES_TO_EXPIRE [???] * -1, 0)), 
null, 
queryFilter(), 
Notification.MODIFY_DATE.descs(), 25);

Any ideas for a qualifier to do this?

Wonder from 2 weeks ago, WO 5.4.3
 _______________________________________________
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: EOQualifier and ERXKey question
      • From: Travis Britt <email@hidden>
  • Prev by Date: [MEETING] Reminder - WO-NoVA is TOMORROW NIGHT (4/26/2011)
  • Next by Date: Re: EOQualifier and ERXKey question
  • Previous by thread: [MEETING] Reminder - WO-NoVA is TOMORROW NIGHT (4/26/2011)
  • Next by thread: Re: EOQualifier and ERXKey question
  • Index(es):
    • Date
    • Thread