Filtering just a sap.m.List in Client Side SAPUI5

后端 未结 2 1329
南笙
南笙 2021-01-16 19:51

I\'m looking for filtering just a List in Client Side and let other like table etc etc filtering in server side Is there any options to add to the list to filter in clien

2条回答
  •  被撕碎了的回忆
    2021-01-16 20:09

    You can use the operation mode parameter for the v2.ODataModel. This parameter can be set at model level (see the defaultOperationMode constructor parameter) or at binding level (see the operationMode constructor parameter).

    Based on this parameter, the model fetches data differently:

    • Server mode: data is fetched as needed (paging, sorting and filtering is done on server side; each sorting, filtering or paging operation triggers a request).
    • Client mode: the whole collection is requested initially. All sorting, filtering and paging operations are done on the client.
    • Auto: a combination (based on other model settings).

    To read more about the operation mode, check out the corresponding documentation: OperationMode.

    If you want to use this only on one list, then you should you the binding variant:

    
        
    
    

提交回复
热议问题