01-22-2013 11:39 PM - edited 01-22-2013 11:48 PM
I've posted this question some time ago like in September/October timeframe here
I'm still trying to open the calendar from my app to a specific date, I'm able to launch the calendar app, but unable to point the calendar app to a specific date with the following code:
blackberry.invoke.invoke({
target : "sys.pim.calendar",
action : "bb.calendar.OPEN",
data : "{'date':'Wed Jan 23 2013'}",
}, function() {
alert("success");
}, function(e) {
alert("error");
});
Am I doing something wrong?
Wilson
Solved! Go to Solution.
01-24-2013 02:23 AM - edited 01-24-2013 02:25 AM
I'm not sure what format the date has to be. Maybe
"Jan 01, 2015, 12:00"
or even
new Date("Jan 01, 2015, 12:00")but
data :
definitely has to have an actual colon instead of the HTML entity for the colon, but I'm pretty sure that's what you meant, though, so it's probably the date format or something else in the data format.
01-24-2013 08:43 AM
Did you check out some of the new docs in the Cascades section? Try this out: https://developer.blackberry.com/cascades/document
Specifically: bb.calendar.VIEW section.
01-24-2013 09:45 AM
01-24-2013 09:47 AM
Forwarded internally.
01-24-2013 12:25 PM
I got the attention of the Calendar people I will update you when I know more.
01-24-2013 03:36 PM
Turns out they were hiding it from all of us. The API wasn't properly documented since we wrap it a bit different in WebWorks then they do in Cascades. Here is what worked for me, give it a shot:
blackberry.invoke.invoke({
target : "sys.pim.calendar",
action : "bb.calendar.OPEN",
data : "?date=2012-09-24 01:01:00"
});
We will wrap this in the future to make it easier, but this will always work for you.
01-24-2013 03:46 PM
01-25-2013 01:21 PM
works great, thanks