Skip to Content
Former Member
Jun 20, 2014 at 07:22 AM

How to skip items for aggregation binding when using factory function


Hi there,

I'm using a sap.m.List and do aggregation binding using a factory function. I need to use a factory function as I create a custom control for the sap.m.List.

However, when getting all the entries for the data binding for my factory function, I need to skip some entries, for example when a status is not the right value.

When returning null in the factory function, the data binding fails.

TypeError: Cannot read property 'setBindingContext' of null

Is there a way to skip creation of a UI element for data binding when using a factory function?