Skip to Content
Former Member
Jul 14, 2015 at 08:50 PM

"Suggest" Event for Live Search in SearchField



I am using search field with live search and suggestions option enabled for SAP Web IDE Application.

When text is there in search field, suggestions should come and when field is empty, all the items in list should come.

For former part, oEvent in suggest function is getting fired on every change of search field. But while clearing text (pressing backspace), control is coming to function until last character remains in field. When last character is cleared, oEvent is not getting fired and hence no control to suggest function

Here is the code:

this._oSearchField = new sap.ui.commons.SearchField( {

enableListSuggest : false,

enableFilterMode : true,

enableClear : true,

startSuggestion : 0,

width : "100%",

suggest : function(oEvent) {




How to bring control even when the field is getting empty?
Do I need to add any property other than these? Or can it be version compatibility issue of SAP UI5 with SAP Web IDE?

Kindly help!

Thanks & Regards,

Rhythm Sharma