Skip to Content
0
Jun 14, 2016 at 12:06 PM

Composite Control Aggregation Binding - oPropagatedProperties issue..

498 Views

hi,

I'm creating a Custom Control which contains a sap.m.List which is a private property. This Custom Control contains an aggregation called "items" should should "map" (or be transported) into the sap.m.List "items" aggregation. I usually don't waste my time with Custom Controls but this time some piece of "functionality" will be widely re-used (it's a mashup to display a list, sort, filter, search, select columns, all together all dynamic).

While I have my own bindAggregation method (on the custom control) which checks for an "items" aggregation and move the binding condition into the sap.m.List and the my own addItem which adds an item into the sap.m.List, the sap.m.List.oPropagatedProperties is not being "automatically managed" by the framework - this means, all my items are OK, all the bindings are OK but there are no models being propagated from the Custom Control, which results in "blank" properties since the framework cannot find the related model of the binding.

I did resolve the issue re-implementing the propagateProperties in my Custom Control and also forcing a refresh on the sap.m.List items aggregation (which forces an update and recalculation of all bindings) but I'm unhappy with my results.

Does anyone in here understands what's going on or how to best achieve this? - As far I understand not even setting a parent on the sap.m.List is making the propagation work correctly, so I'm kinda lost.

An example would be a custom ListItemBase inside my Custom Control "items" - this becomes automatically the sap.m.List "items", all bindings should be resolving.


Help is appreciated...!

Dan.

PS: latest openUI5 being used.