cancel
Showing results for 
Search instead for 
Did you mean: 

Search Feature In HANA Cloud Portal

Former Member
0 Kudos

Hi All,

I am developing the catalog using the Hana Cloud Portal. Because there can be lot more items, so it would be better for the end user to do a search and get to the item he/she is looking for. Can anyone help me out regarding how the search can be implemented in Hana Cloud Portal.

Thanks & Regards,

Manu Khandelwal

Accepted Solutions (1)

Accepted Solutions (1)

former_member182739
Active Participant
0 Kudos

Hi Manu,

Thanks for your feedback.

The search feature is a key feature we have in our future product roadmap.

Once we will have a mockup ready, It will be great to get your feedback.

this isn't a simple implementation as it requires a full indexing mechanism.

However, some of our customers implemented search as custom customer widgets, since we have a public APIs for publish and subscribe, you can define one widget to be the search control (using UI5 search control or develop control by yourself). this widget should send event (publisher) and all other widgets will be the listeners and will "mark" the search results accordingly, or you can implement search result as a single widget.  

You are welcome to contact me directly for technical support - inbal.sabag@sap.com.

Inbal

Former Member
0 Kudos

Hi Inbal,

Thanks for your detailed reply.

I created two widget as suggested by you. One for the Search Text Box and another for the Search result. I tried to publish the test box content from the publish API exposed by this framework.

But every time I tried to publish, I see in chrome debugger that ‘gadgets.sapcontext’ is undefined. Below is the snapshot of the error. I would be thankful if you could suggest what I am doing wrong.

Below is the link for the site: https://cloudportaltrial-i074670trial.hanatrial.ondemand.com/portal/cloud-portal/index.html?id=541c7...

Once you do any search, you will get the below error.

Also attaching the Search Home Widget Code.

Thanks & regards,

Manu Khandelwal

former_member182739
Active Participant
0 Kudos

Hi Manu,

Once you are using the pub-sub API, you have to declare the following open socail feature in your specXML, (and not just using it in your code):

< ModulePrefs title ="publisher">

  < Require feature ="sap-context"/>

</ ModulePrefs >

I think you have missed that part.

SAP HANA Cloud Portal Documentation

Let me know if this is working now.

inbal

Former Member
0 Kudos

Hello Inbal,

Very Thankful to you. I included 'sap-context' and it is working now...

One thing I observe in portal is that sometime when I change the content of file and upload in repository, it does not reflect the changes immediately. So, everytime I am changing the file name and uploading to repository.

I have one more doubt. For my custom Widget, how can I get the user to input certain configuration. I read about 'Gadget Preference'( but there is limit for key-value pair size 4096 char) but I need to know like how the edit of 'Rich Text Editor' widget has been implemented.

Thanks & Regards,

Manu Khandelwal

Answers (0)