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
BBornot2B
Posts: 19
Registered: ‎11-11-2012
My Device: Z10, DevAlphaC, Torch 9810, PlayBook
My Carrier: Movistar

Invoking sys.search on 10.2

Hi there

 

I'm finding an issue on my app on 10.2 (not on 10.1) when trying to invoke sys.search... by the way, in order to upgrade to 10.2 I had to move every invocation I had on QML into C++ methods since I never could make invocations work on QML.

 

At this real code, on my DevAlphaC 10.2 first method does nothing but second works fine, while so do both on my Z10 10.1.

 

Any idea on what the problem is with sys.search on 10.2?

 

Thanks in advance

Diego

 

void Backpack::launchSearchToPutin(QString query) {

	InvokeManager invokeSender;
	InvokeRequest request;
	request.setTarget("sys.search");
	request.setAction("bb.action.OPEN");
	request.setUri(QString("search://?term=").append(query));
	invokeSender.invoke(request);
}

void Backpack::launchRating() {

	InvokeManager invokeSender;
	InvokeRequest request;
	request.setTarget("sys.appworld");
	request.setAction("bb.action.OPEN");
	request.setUri("http://appworld.blackberry.com/webstore/content/20399673");
	invokeSender.invoke(request);
}

 

Please use plain text.
Developer
Zmey
Posts: 1,509
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: Invoking sys.search on 10.2

Hi! Looks like a bug. I suggest submitting a JIRA ticket, it might get fixed before the 10.2 release:

https://www.blackberry.com/jira


Andrey Fidrya, @zmeyc on twitter
Please use plain text.
Developer
BBornot2B
Posts: 19
Registered: ‎11-11-2012
My Device: Z10, DevAlphaC, Torch 9810, PlayBook
My Carrier: Movistar

Re: Invoking sys.search on 10.2

Please use plain text.