Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 07, 2014 at 04:30 PM

    this.getView().byId("testSearchField").getComponent().getAggregation("rootControl");

    Add comment
    10|10000 characters needed characters exceeded