Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ComponentContainer does not return aggregations?

Hi all,

I have create a custom component which is actually a VBox which contains 2 sap.m elements: SearchField and Popover.

In my view, i used this:

<core:ComponentContainer id="testSearchField" name="components.SearchFieldPopover"/>

In the controller.js, I needed to control the SearchField element in the "components.SearchFieldPopover".

I was able to do: this.getView().byId("testSearchField")

but I cannot get the individual element (SearchField and Popover) by using:

this.getView().byId("testSearchField").getAggregation()


How do I control the individual element in this case?



Regards,

Chris

Former Member
Not what you were looking for? View more on this topic or Ask a question