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

Native Development

Reply
Highlighted
Developer
Posts: 385
Registered: ‎07-20-2012
My Device: Blackberry Z10 (White), BlackBerry Dev Alpha C
My Carrier: O2 UK
Accepted Solution

Card Invocation

[ Edited ]

Hello, 

 

I am simply trying to use a card to add a calendar event but my code below does not do anything. 

 

    actions: [
        ActionItem {
            title: qsTr("Add To Calendar")
            imageSource: "asset:///IMG/ic_add_entry.png"
            ActionBar.placement: ActionBarPlacement.OnBar
            
            onTriggered: {
                invokeCalendar.trigger("bb.action.CREATE")
            }
        }
    ]
    attachedObjects: [
        Invocation {
            id: invokeCalendar
            query {
                mimeType: "text/calendar"
                invokeActionId: "bb.action.CREATE"
                invokeTargetId: "sys.pim.calendar.viewer.eventcreate"
            }
        }
    ]

 If possible, I would like to prefil the subject, body and time of the event. 

 

I have looked at Brian Scheirer's code: http://bbcascadescode.tumblr.com/post/39391083442/new-calendar-year but I could not get it to work on either the 10.1 or 10.2 API level, so I am trying to simply create a card on it's own in QML instead.

 

Any help would be great. 

 

Thanks Smiley Happy 

Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Card Invocation

Yeah, I'm seeing the same thing. You may have found a bug, please log it on the Developer Issue Tracker: DIT

 

For now, I'd recommend you set up the invocation in C++, like the examples done in Calendary Invoker presentation repo

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
Posts: 385
Registered: ‎07-20-2012
My Device: Blackberry Z10 (White), BlackBerry Dev Alpha C
My Carrier: O2 UK

Re: Card Invocation

Hi Paul, thanks for checking it for me. I have tried to submit it on the DIT but the page appears to be on a continous loading loop (on both my laptop and Z10) - I'll try to submit it again later
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Card Invocation

Your account may not be set up correctly. Can you PM me the email address used for your BBID please?

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
Posts: 385
Registered: ‎07-20-2012
My Device: Blackberry Z10 (White), BlackBerry Dev Alpha C
My Carrier: O2 UK

Re: Card Invocation

Okay, I've just sent you a PM Smiley Happy