on 12-29-2014 7:13 AM
Hi All,
I have a m.list bound to JSONModel.
I have a search field wherein user types to search for items in list.
So basically, I would like to fiilter the JSONModel based on whats enetered by user in search field?
How to do this?
Please help!
Examples would really help.
Appreciate your help!
Thanks
Amjad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sean,
Basically what I want is..
User to type in the input field and he should be given assistance like (type-ahead) like you get in Google search.
Once he is done typing when he hits enter, we filter the list accordingly.
I managed to get all this done, but the assitance provided by default is startsWith but I want contains..
Hope I could explain
Take a look here :http://jsbin.com/zudazuquxa/2/edit
If you see, the filter is sap.ui.model.FilterOperator.Contains
However, it still works for only startsWith
Am I missing something?
Hello Amjad
The sample application developed by DJ Adams has the same things implemented which you need.
please search for Learn Building Fiori like apps by DJ Adams in 10 simple exercise and use the snippet
Thanks
NAbheet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.