Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3323

Apply Filter on JSON Model

$
0
0

Hi,

 

I got a JSON model as follows

 

{

    "items": [

        {

            "name": "Test1,

            "description": "Description1"

        },

        {

            "name": "Test2",

            "description": "Description2"

        }

    ]

}

 

Binding:

 

var oModel = new sap.ui.model.json.JSONModel();

oModel.loadData("./json/items.json",null,false);

 

Is there any way I can filter at this spot by name name=Test1

The reason is that I have form layout in which I want to only show this filtered value


Viewing all articles
Browse latest Browse all 3323

Trending Articles



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