Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Activating Search option in SAPUI5 Dialog Help-box

$
0
0

Hi ,

 

You are binding title="{Kostl}" and description="{Ktext}"  in Dialog and your filter path is "Saknr". Change it to "Kostl" or "Ktext".

 

If you want to filter on both then you can use something like this :

 

var sValue = evt.getParameter("value");

        var oFilterName = new sap.ui.model.Filter("Kostl", sap.ui.model.FilterOperator

            .Contains, sValue);

        var oFilterCode = new sap.ui.model.Filter("Ktext", sap.ui.model.FilterOperator

                .Contains, sValue);

        var oFilter = new sap.ui.model.Filter({filters : [oFilterName, oFilterCode], and : false});

        evt.getSource().getBinding("items").filter([oFilter]);

 

I hope it helps .

 

 

Regards

Mayank Jain


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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