Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Highlighted
Contributor
Posts: 16
Registered: ‎03-25-2012
My Device: Blackbery Playbook
My Carrier: Aircel
Accepted Solution

Unable to connect to calendar application in blackberry playbook application

I am trying to add feature of adding reminder to calendar from blackberry playbook application, but for some reason I am getting this error.

TypeError: 'undefined' is not an object (evaluating 'new blackberry.pim.Appointment')

I have added required configuration setting in config.xml file

<?xml version="1.0" encoding="UTF-8"?>
<widgetxmlns="http://www.w3.org/ns/widgets" ...>
..
...
....
<featureid="blackberry.invoke"version="1.0.0"/>
<featureid="blackberry.invoke.CalendarArguments"version="1.0.0"/>
<featureid="blackberry.pim"version="1.0.0"/>
<featureid="blackberry.pim.Appointment"version="1.0.0"/>
<featureid="blackberry.pim.Address"version="1.0.0"/>  
....
....
</widget>

In Javascript I have added the code for calendar

<scripttype="text/javascript">
var appt =new blackberry.pim.Appointment();
appt
.summary ='Get Together For lunch';

var args =new blackberry.invoke.CalendarArguments(appt);
args
.view =0;

blackberry
.invoke.invoke(blackberry.invoke.APP_CALENDAR, args);  // Calendar

</script>

I am testing this in Ripple Emulator

Regards

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Unable to connect to calendar application in blackberry playbook application

This doesn't work on the PlayBook. When looking at the WebWorks API, take note of the supported platforms, at the top Smiley Wink.
--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Contributor
Posts: 16
Registered: ‎03-25-2012
My Device: Blackbery Playbook
My Carrier: Aircel

Re: Unable to connect to calendar application in blackberry playbook application

Thankss Smiley Happy