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:50 PM
I have exactly the same problem too. What gives???
All this time I thought I was crazy and smoking something (I was I was)
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......
03-28-2011 11:23 AM
Just talked to a Rep and they will have a new release out with WebWorks very soon. The fix that we're both looking for is in there.
04-21-2011 05:51 PM
Nothing as of yet - the new Tablet Webworks API is out, but nothing on the Smartphone one. Anyone have even a workaround for this that doesnt involve manually parsing the array? We have an app that blows up if people have a large number of appointments because we have to load them all into a Javascript array and parse them....
04-27-2011 06:43 PM
This problem is fixed with the Webworks 2.0 API for Smartphones - Filter works like a champ!