Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2129

Splitapp and vizframe in Detail View

$
0
0

Dear community,

 

my next challenge is to implement a vizframe depending on the Detail Context.

My problem ist, that only the frame of the fizfram is shown, without any content.

 

Detail.controller

onAfterRendering:function()

{

...

var oVizFrame = this.getView().byId("BudgetChart");

oVizFrame.setModel(sap.ui.getCore().byId("Master").getModel("MasterModel"));

...

 

Detail View

<viz:VizFrame xmlns:viz="sap.viz.ui5.controls" id="BudgetChart" uiConfig="{applicationSet:'fiori'}" vizType="pie" width="100%">

                          <viz:dataset>

                                <dataSet:FlattenedDataset xmlns:dataSet="sap.viz.ui5.data" data="{MasterModel>/BUDGET_CHART}">

                                   <dataSet:dimensions>       

                                    <dataSet:DimensionDefinition name="Title" value="{TITLE}">

                                    </dataSet:DimensionDefinition>

                                  </dataSet:dimensions>

                                  <dataSet:measures>

                                    <dataSet:MeasureDefinition name="Value" value="{VALUE}">

                                    </dataSet:MeasureDefinition>

                                  </dataSet:measures>

                            </dataSet:FlattenedDataset>

                          </viz:dataset>

                          <viz:feeds>

                               <feed:FeedItem xmlns:feed="sap.viz.ui5.controls.common.feeds" uid="size" type="Measure" values="Title" />

                            <feed:FeedItem xmlns:feed="sap.viz.ui5.controls.common.feeds" uid="color" type="Dimension" values="Value" />

                          </viz:feeds>                                       

                     </viz:VizFrame>

 

Content of exmemplary content

...

"BUDGET_AVAIL":64,"BUDGET_CHART":[{"TITLE":"Budget used","VALUE":36},{"TITLE":"Budget available","VALUE":64}],

...

 

Where is my mistake?

 

I tried the view coding with a given static datamodel and it works, but not with this dynmaically one?

I Want to show a different cart on each detail page.

 

Best regards,

Marcel


Viewing all articles
Browse latest Browse all 2129

Trending Articles



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