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: 134
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE
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!

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

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.
Developer
santito95
Posts: 134
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE

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

Thanks! Worked fine!