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
Developer
santito95
Posts: 129
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE
My Carrier: Telcel
Accepted Solution

Invoking a specific tab using <invoke-target>

[ Edited ]

Hi everybody, I have a question..  is possible make a invoke-target property to open a specific tab or dialog from my app?

 

Thanks!

Please use plain text.
Developer
simon_hain
Posts: 15,863
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Invoking a specific tab using <invoke-target>

sure.
your app gets invoked with a certain payload, you analyze that and can display whatever you want.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
BBSJdev
Posts: 5,970
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Invoking a specific tab using <invoke-target>

As Simon says when your app is invoked you can recognise it is and then your application flow can go off in a different direction as in displaying a dialog or setting a different default Tab.

 

At it's simplest all you need is this in your applicationui constructor...

 

    bool connectResult = QObject::connect(mInvokeManager,
                    SIGNAL(invoked(const bb::system::InvokeRequest&)),
                    this,
                    SLOT(onInvoke(const bb::system::InvokeRequest&)));

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
santito95
Posts: 129
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE
My Carrier: Telcel

Re: Invoking a specific tab using <invoke-target>

Thanks! Worked fine!

Please use plain text.