Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

sap.viz.ui5.Column in a sap.m.Page error

$
0
0

Hi Experts,

 

I'm trying to use class sap.viz.ui5.Column to create chart, and when using it alone, everything works as expected:

 

<mvc:View

  controllerName="Graphic"

  xmlns="sap.m"

  xmlns:viz="sap.viz.ui5"

  xmlns:mvc="sap.ui.core.mvc">

         

        <viz:Column id="idViz"></viz:Column>

</mvc:View>

 

viz.png

 

But, If I try to add this chart inside of a sap.m.Page element, like below:

 

<mvc:View

  controllerName="Graphic"

  xmlns="sap.m"

  xmlns:viz="sap.viz.ui5"

  xmlns:mvc="sap.ui.core.mvc">

        <Page id='idApp' showNavButton="true" navButtonPress="handleNavButtonPress">      

             <viz:Column id="idViz"></viz:Column>

        </Page>

</mvc:View>

 

 

When running including the Page component, nothing is showed and no error is showed in the console.

 

Any idea what might be wrong here?

 

PS: The code in the onInit method of the controller is not changed, just the view.xml file is changed. Without the Page component works, and with it doesn't.

 

Thanks and regards,

Roberto Falk


Viewing all articles
Browse latest Browse all 6178

Trending Articles