Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Filter on Listbox doesn't seem to be working

$
0
0

Hello have a filter below, though it doesn't seem to filter, anyone spot any issues?

 

        var oModel = sap.ui.getCore().getModel();        //      // Create the ListBox        var oSimpleListBox = new sap.ui.commons.ListBox("box1", {            allowMultiSelect: false,            id: "box1",            width: "300px",            visibleItems: 25        });    var aFilter = new sap.ui.model.Filter("expired", sap.ui.model.FilterOperator.NE, "N");          oSimpleListBox.bindAggregation("items", "/ppl", new sap.ui.core.ListItem({     filters:[aFilter],            text: "{desc}",            key: "{number}"        }));  //oSimpleListBox.getBinding("items").filter([aFilter]);        oSimpleListBox.setModel
(oModel);

Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>