Skip to Content
0

How can I add a Microchart in ObjectPageHeader

Aug 25, 2017 at 02:57 PM

52

avatar image

Hello,

I am trying to get a Microchart from the content into the Header, it is working within the content like this:

<mvc:View controllerName="......controller.Detail"

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

xmlns="sap.m"

xmlns:ball="sap.suite.ui.microchart">

<Page navButtonPress="onNavPress" showNavButton="true" title="{Name}">

<content>

<ball:HarveyBallMicroChart total="{Budget1}" totalScale="Mrd" showTotal="true" showFractions="true">

<ball:items> <ball:HarveyBallMicroChartItem fraction="{Budget2}" color="Good" fractionScale="Mrd"/>

</ball:items>

</ball:HarveyBallMicroChart>

<ObjectHeader title="{Name}">

<statuses>

<ObjectStatus text="Periode {Periode}/{Geschäftsjahr}" state="{Status}"/>

<ObjectStatus text="Aktiv" state="{Status}"/>

</statuses>

<attributes>

<ObjectAttribute text="K {Kosten}"/>

<ObjectAttribute text="Version {Version}"/>

</attributes>

</ObjectHeader>

But I can not get it working inside the ObjectHeader.

Is there a way to get it there without sap.uxap.ObjectPageHeader?

Thank you and best regards

Andy

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Irfan Gokak Aug 27, 2017 at 02:18 PM
0
Show 3 Share
10 |10000 characters needed characters left characters exceeded

Dear Irfan,

thanks for your answer.

Is there a way to do it without sap.uxap?

0

Dear Andy,

I have tried adding Micro Chart under ObjectHeader aggregation headerContainer. But it's not showing. Better go with sap.uxap.

0

Dear Irfan,

thank you for your help - i appreciate it!

Working on switching the hole view to uxap

Best Regards

Andy

0