09-27-2012 06:21 PM
I've looked around and found that I can use blackberry.invoke.invoke() to do it, but I don't know where to find the target and what I need to pass to the calendar app. What I'm trying to do is to send a date to be opened in the calendar app. Is it possible?
Wilson
09-27-2012 08:03 PM
Not available yet, will be coming in the November release.
https://developer.blackberry.com/html5/download/ro
09-28-2012 09:53 AM
Hey Wilson and Rory,
You can actually accomplish what you want now through the following:
blackberry.invoke.invoke({target : "sys.pim.calendar"
action : "<one of below>"});
- bb.calendar.OPEN
- bb.calendar.VIEW
- bb.calendar.CREATE
- bb.calendar.EDIT
We haven't spent the time to document, or experiment too much with the options you pass the calendar, but feel free trying it out.
09-28-2012 02:33 PM
10-01-2012 09:56 AM
You can also see a preview of the 'next' branch of the WebWorks-API-Docs which has some information about calendar.
NOTE: Use this information at your own discretion. This API may change. There may be features added / removed to it. If the API does change in the next SDK release, your code may require additional work at that point in time.
That being said, here are instructions on how to get to these docs:
1) Open the https://github.com/blackberry/WebWorks-API-Docs repo
2) Change the branch from master to next-BB10: https://github.com/blackberry/WebWorks-API-Docs/tr
3) Click on the link at the bottom of the page "The documentation can also be viewed online on github at this link"
It should open a listing page, which from there you can dig into the WebWorks-API-Docs-next-BB10-pim-calendar commit :
10-01-2012 09:57 AM
Hi Wilson,
Of course, I wasn't totally sure. I spoke with the caledar team and they accept the data field. You should be able to pass a json object to data field as follows:
var dataObj = {date : 'Tue Oct 2 2012'};
blackberry.invoke.invoke({target : "sys.pim.calendar"
action : "bb.action.OPEN", data : dataObj});
I wasn't able to get it working yet, but figured I would pass on the information. As we work on the PIM invocation well keep you updated.
10-01-2012 10:34 AM
Thanks for the info, I'll try what's suggested and I'll keep on the look out for the next webworks release.
Wilson
10-02-2012 05:35 PM
yeah I can't get it to work either... will wait for your good news then. ![]()
12-04-2012 01:18 PM
Hello!
So I have been playing around with the new pim calendar, but its not what I am looking for. I think
is the best solution. All I want to do is call the calendar app and create an event, much like if you were to click on a link and have it open a browser seperatly. I dont see why this wouldnt be a better solution as you give the user "what they know", with all the appropriate fields.
I havent tried the code yet, I will this evening, but what I have there - does that make sense?
I assume I will create a function called, "calEntry" with the above code, then call it when needed. Is that also correct?
Thanks!
Phil
12-16-2012 11:10 PM
Hello again
I had posted the question a while back and pim functionality was not out back then. So here I'll ask again.
What I'm trying to do is launch the day view in calendar, providing a date from my app. Not creating any event. So now that the api is final. Is there a way to do it? Are there any documentations anywhere regarding invoke targets of the system apps?
Thanks in advance.
Wilson