cancel
Showing results for 
Search instead for 
Did you mean: 

Link : cannot add direct child without default aggregation defined for control sap.m.objectattribute

sanketchimalwar
Participant
0 Kudos

Hi ,

I am trying to add Link to the objectattriute element in the following way.

But I get an error "cannot add direct child without default aggregation defined for control sap.m.objectattribute" . I am not sure what am i doing wrong here ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The aggregation customControl is defined in wrong way. It will just be: <customControl></customControl>. Please execute below code:

<ObjectAttribute  >       
  <customContent>
         <Link text='abc' press='handleLink' />       
  </customContent>     
</ObjectAttribute>
sanketchimalwar
Participant
0 Kudos

Hi Rahul,

I had also tried the above code and it gives me the same error. I am using Webide version 1,28.0 . Does that have any effect ?

Warm regards

Sanket

Former Member
0 Kudos

Hi Sanket,

You are right. I ran my code in 1.28 and 1.26 and it gave error. However, it does not give me error in 1.30.6 and higher ( tried 1.42 as well).