Skip to Content

Cannot add direct child without default aggregation defined for control

Hello Expert,

I have to create chart.

<viz:VizFrame id="idVizFrame" uiConfig="{applicationSet:'fiori'}" height='100%' width="100%" vizType='stacked_column'>

<viz:dataset>

<viz.data:FlattenedDataset data="{mymodel>/}">

<viz.data:Dimensions>

<viz.data:DimensionDefition name="Country" value="{country}" />

<viz.data:DimensionDefition name="Product" value="{product}"/>

</viz.data:Dimensions>

<viz.data:Measures>

<viz.data:MeasureDefinition name="Profit" value="{profit}"/>

</viz.data:Measures>

</viz.data:FlattenedDataset>

</viz:dataset>

<viz:feeds>

<viz.feeds:FeedItem uid="valueAxis" type="Measure" values= "Profit"/>

<viz.feeds:FeedItem uid="categoryAxis" type="Dimension" values= "Country"/>

<viz.feeds:FeedItem uid="color" type="Dimension" values= "Product"/>

</viz:feeds>

</viz:VizFrame>

I am getting error:

UIComponent.js:6 Uncaught Error: Cannot add direct child without default aggregation defined for control sap.viz.ui5.data.FlattenedDataset

I want to learn how to remove this error.

If it can not be without default aggregation, how should i found which is the default aggregation that i am missing ?

Thanks,

Abhishke

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 29, 2016 at 06:26 AM

    Hi Abhishek,

    Will this sample help? JS Bin - Collaborative JavaScript Debugging

    Regards,

    Sai.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 29, 2016 at 05:36 AM

    you didnt provide entity set for the chart in line

    <viz.data:FlattenedDataset data="{mymodel>/<missingEntityname>}">



    also refer

    Bar Chart using VizFrame in SAPUI5 - SAP ABAP,SAPUI5,SAP HANA,SAP Fiori,OData,Netweaver Gateway,SAP Workflow,SAP Web ID…

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.