Skip to Content
avatar image
Former Member

Cannot add direct child without default aggregation defined for control sap.m.ViewSettingsDialog

Hi,

Does anyone know how the mistake happened?

Please advise.

Thanks.

Fragment:

Controller:

error:

11111.jpg (165.9 kB)
11112.jpg (109.9 kB)
11113.jpg (93.3 kB)
11111.jpg (165.8 kB)
11112.jpg (88.1 kB)
11111.jpg (149.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 06, 2017 at 08:09 AM

    since you have alias m for sap.m as xmlns:m="sap.m", so you need to prepend m: for every control/aggregations inside ViewSettingsDialog

    or better to remove m from your code and do like below, will work...

    xmlns:m="sap.m" -> xmlns="sap.m"

    <m:ViewSettingsDialog -> <ViewSettingsDialog

    Add comment
    10|10000 characters needed characters exceeded