Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2638

XML View issue

$
0
0

Hi,

 

I have one issue i am trying to add the button in BAR using XML. I got the below exception.I found the same error while adding the other elements,

but not able to understand the root cause.

Can you please help me.

 

 

 

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

 

 

<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"

  controllerName="xmltabelr.xml" xmlns:html="http://www.w3.org/1999/xhtml">

  <App>

  <Page title="Title">

         

<Text text = 'Nishan Bansat'></Text>
<Button type="Back"/>
<footer>
<Bar id="searc"><Button type="B1ack"/>
</Bar>
</footer>
</Page>
</App>

</core:View>

 

 

What is the exact issue for below exception.

 

Uncaught Error: Cannot add direct child without default aggregation defined for control sap.m.Bar.

 

 

Thanks

NIshant


Viewing all articles
Browse latest Browse all 2638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>