Skip to Content
0

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

Jun 06, 2017 at 07:02 AM

307

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Akhilesh Upadhyay Jun 06, 2017 at 08:09 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded