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
Developer
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi
Accepted Solution

Pim Calendar - Error 20

I'm getting error 20 when I try to add a calendar event using Webworks.

 

Accoridng to https://developer.blackberry.com/html5/apis/blackberry.pim.calendar.calendarerror.html that error is "due to insufficient permissions.". 

 

I have made sure to set my permissions in the config.xml file like so... 

 

<rim:smileytongue:ermissions>
<rim:smileytongue:ermit>bbm_connect</rim:smileytongue:ermit>
<rim:smileytongue:ermit>access_pimdomain_calendars</rim:smileytongue:ermit>
</rim:smileytongue:ermissions>

 

What could be causing this error?

 

_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.
BlackBerry Development Advisor (Retired)
rtse
Posts: 5
Registered: ‎07-26-2011
My Device: 9800
My Carrier: Rogers

Re: Pim Calendar - Error 20

The permission string is correct.

 

Can you send me (rtse at rim.com) your app? I can quickly take a look.

Please use plain text.
Developer
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Pim Calendar - Error 20

For those interested RTSE was able to solve this problem. The issue was no default calendar was set on my calendar app.

I had to go into the calendar and add an email account for calendar after which it started working.
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.