Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

Unable to get Component from dynamically added view

$
0
0

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!


Viewing all articles
Browse latest Browse all 3441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>