json - SAPUI5 List binding Issue -


can bind 2 json model same list in sapui5? have scenario in on click of button wanted add items in list status(currently list display items approval status , on click of button list should display approval + rejected status item)

approval status items json file bound json model in view.

your issue not multiple models, looks need filtering of list on property ("status" in case).

so can take listbinding:

var olistbinding = olist.getbinding("items"); 

and apply filtering:

olistbinding.filter(array_of_filters); 

to learn more filters, refer api documentation.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -