08-12-2010 08:02 AM
Hi everyone,
Has anyone tried integrating their content into Unified Search Service? I was checking the related document (namely this and this and also the API doc) but they seem to be incomplete. Has anyone figure out how to implement user action on search result?
I saw something about UiAction but not much info on there... and in here: http://docs.blackberry.com/en/developers/deliverab
it said " Define what options should display on the context menu when a user clicks on your entity in a list of search results. See Specify what users can do with your data in search results below for more information" But the " Specify what users can do with your data in search results" part is no where to be found.
Solved! Go to Solution.
08-16-2010 07:02 AM - edited 08-16-2010 07:18 AM
Hi yyhokenny,
i'm trying to do the same thing and it looks like currently this isn't supported . Take a look at the
Release notes : http://docs.blackberry.com/en/developers/deliverab
It says:
Anyway, I'd like to hear comment from somone within RIM about this.
Mate
08-16-2010 10:57 PM - edited 08-16-2010 11:49 PM
I think this is one of those instances where RIM give priority to alliance partners. It's obvious that the doc had the necessary information but got taken out for some reason. There are actually apps that has search integration already... I don't get it... I don't understand why in this day and age of Android and iPhone, RIM is still insisting on doing these tiered thing... I mean... if I require a human being to support me, I would understand the tiered pricing, etc. But I am talking about documentations here. Is accurate and up-to-date documentation that much to ask?
08-30-2010 09:38 AM
I have the same problem, does anybody has updates when this will get fix.
Can anybody from RIM reply to this post?
09-01-2010 12:26 AM - edited 09-01-2010 12:41 AM
They can barely get working APIs and now you want good documentation. Give me a break. I have been getting more and more dissapointed with everything that RIM delivers.
On that note, I too am having the issue where it is not possible to instantiate a UiAction class necessary to do anything with universal search. So I spent a bunch of time implementing something that can't do anything, awesome.
I opened i ticket for this here: https://www.blackberry.com/jira/browse/JAVAAPI-142
Please add comments that others are seeing this issue as well.
09-01-2010 02:49 AM
Hey guys,
I found a workaround, overridden the function getUiActions in SearchableEntity do your stuff inside it and return NULL.
I do Ui stuff through invoke later and do app specific things using alternate entry point. You may want to explore this until RIM give some update on this.
public UiAction getUiActions(Object contextObject, UiAction[] uiActions)
{
//do your stuff here with the entity
return null;
}
Thanks.
09-01-2010 08:14 PM
@mohitsharama got a response about this on this post:
09-03-2010 08:06 AM
Good stuff mohitsharma, that's what I ended up doing as well.
I don't know if you have been following the sample from the SDK, but if you do there's another "bug" you should watch out for as well. In the Searchable, be sure to return your actual array of SearchableEntity even if you add the entity through the AppContentManager.
The sample return a 0-length array and that doesn't seem to be the correct way of doing things because your entities will disappear from the OS after a random period of time (around 15 minutes one time.) At least that's what I observed on the simulator anyway.
09-03-2010 10:21 AM
Hey thanks for that,
I have observed that disappearence but not that much frequent as you say. I have observed it at few ocassions only, on device. Most of the time it's out there. Will try your suggestion if it disappear again and will see if I get the same problem again.
Lets hope an update is underway soon then we dont have to resolve to this kind of "DIRTY" stuff. I think before DEVCON they might rolled out an update as this is such a important feature to use from OS 6.
09-04-2010 09:48 AM
Hi Mohitsharma,
Are you able to get to selected item without UiAction instance?
In my case, contextObject was null and uiActions array was empty.
Or, are you just implementing a generic logic in your app?