Skip to Content
avatar image
Former Member

filter method of sap.ui.model.binding

hello everyone,i hava a problem when i write follow code;

var oList=this.getVIew().byId("list");
var oBinding=oList.getBinding("items");
oBinding.filter(aFilters);

i hava searched API for "sap.m.List", and found method "getBinding",the method return "sap.ui.mode.Binding";

then i searched API for sap.ui.model.Binding, but i cant not find the method of filter,does anyone know something about it?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 27, 2015 at 03:30 AM

    Hi LAN,

    Check this sample: SAPUI5 Explored

    And Code here: SAPUI5 Explored

    Regards,

    Sai Vellanki.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 27, 2015 at 06:31 AM

    you dont see it because it is ListBinding

    SAPUI5 SDK - Demo Kit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      yes,you are right,i also wonder that it returns ListBinding when i can not find filter in Binding but find in ListBinding.i am new to js ,i can not make sure it is a ListBinding when i debug,can you tell me how to distinguish it?

      debug.png (6.9 kB)
  • Oct 27, 2015 at 06:33 AM

    and yes, sdk's api reference is not full, that's why i encourage all develeoprs to go and check sources

    Add comment
    10|10000 characters needed characters exceeded