03-05-2011 06:02 AM
I am unable to get the Date comparisons to work correctly for FilterExpressions when consumed by a blackberry.pim.Appointment.find() on any OS 6 Device. They just dont work. Here is the code, taken nearly exactly from the API samples :
var date = new Date();
var filter = new blackberry.find.FilterExpression("start", ">=", date);
var appts = blackberry.pim.Appointment.find(filter);
This code will never find an appointment, but you take off the comparison, or negate it, and it finds them. OS 5 works great. Can anyone confirm that, or better yet have any workarounds? Thanks!
Solved! Go to Solution.
03-16-2011 04:58 PM
I am glad I am not alone. It is a bit painful to deal with, right now I have to basically give it a filter to return everything, then iterate through the whole set to find the items I need, which isnt efficient.
Can anyone else state thier experience with this? I dont see it as a known problem that is being worked, so I dont have faith that it would be fixed in the upcoming Webworks release....
I suppose we should just take this to our corporate RIM rep, or open a ticket......
04-21-2011 05:51 PM