cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.SelectDialog ​Cannot read property 'destroy' of undefined

3_
Discoverer
0 Kudos

I use sap.m.SelectDialog. When I try search a number. I have a problem with display list. I just get list about 15-20 items and wait. I attached scrin.

If I search a string it is work.

Cannot read property 'destroy' of undefined 1.44.10 (built at 201703142144, last change ) sap.m.SelectDialog

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member227918
Active Contributor
0 Kudos

share you search function or dialog related code.

3_
Discoverer
0 Kudos
 			var sValue = oEvent.getParameter("value");
 			var oBinding = oEvent.getSource().getBinding("items");
 			var oFilter = new Filter("Fictr", sap.ui.model.FilterOperator.Contains, sValue);
 			oBinding.filter([oFilter]);

//If did not find any items, use search at another field.
 			if (oBinding.getContexts().length < 1) {
 				oFilter = new Filter("Bezeich", sap.ui.model.FilterOperator.Contains, sValue);
 				oBinding.filter([oFilter]);
 			}