SAPUI5 Filtering in JSON model

In this post we are going to learn how to do filtering for JSON model, Here Filtering is implemented in Javascript because the data is available on client.
Here we are applying Filter opertaion for table.

Lets discuss step by step:

    1. First create applicaiton
    2. View1.view.js

In View we are going to create our controls, Here we are using table controller to display the JSON data and a Filter button to create an event.

code

    1. Model Data we are using

mock.json

    1. view1.controller.js

Here we are initializing the model and set to core and writting the login for Filtering

Output:
filter_json