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
Visitor
Posts: 1
Registered: ‎01-14-2013
My Device: BlackBerry 10 Dev Alpha Simulator
My Carrier: N/A

issues with the Invocation Framework / Cards

Hi guys,

 

i am trying to test the invocation framework. my UI is QML. I would like to open the calendar, also checked with a couple of other native core apps. i am reading this tutorial:

 

https://developer.blackberry.com/cascades/documentation/device_platform/invocation/invocation_framew...

https://developer.blackberry.com/cascades/documentation/device_platform/invocation/invoking_core_app...

 

this is my code, but i've tried with several different apps and actions:

 

// Default empty project template
import bb.cascades 1.0

Page {
                    Button {
                            id: test
                            text: "Open calendar"
                            attachedObjects: [
                                Invocation {
                                    id: invokeObj
                                    query: InvokeQuery {
                                        mimeType: "text/calendar"
                                        invokeTargetId: "sys.pim.calendar.viewer.nav"
                                    }
                                }
                            ]
                            onClicked: {
                                invokeObj.trigger("bb.calendar.OPEN");
                            }
                        }
    
}

 i don't see any errors or info in the Device Console, when i debug - and basically nothing happens when i click the button. 

 

I was only able to open the Browser in this way. The docs don't mention any limitations. I am using the Dev Alpha Simulator , BBNDK host_10_0_9_404 and target_10_0_9_1673. 

 

Thanks very much for your help.

Angel

Highlighted
Regular Contributor
Posts: 60
Registered: ‎12-19-2012
My Device: BB10 Alpha B
My Carrier: SFR

Re: issues with the Invocation Framework / Cards