Skip to Content
0
Former Member
Jan 13, 2016 at 07:13 AM

Unable to get Component from dynamically added view

220 Views

Hi experts,

When I add new sub-view using method sap.ui.xmlview() to content aggregation of a view (IconTabFilter), the new sub-view cannot get reference to Component object.

In the sub-view's controller, using sap.ui.core.Component.getOwnerComponentFor(this.getView()) will return undefined.

May I know how to get reference to Component? I need this object to access the configuration data stored there.

Many thanks.

Cheers!