samedi 9 mai 2015

sapui5 fiori xml view how to add the BulletChart

i am coding in fiori (sap web ide) and i have a lack of understanding:

<mvc:View
xmlns="sap.m"
xmlns:core="sap.ui.core"
xmlns:mvc="sap.ui.core.mvc"
xmlns:l="sap.ui.layout"
xmlns:f="sap.ui.layout.form" controllerName="test.view.Detail">
<Page id="detailPage" navButtonPress="onNavBack" title="{i18n&gt;detailTitle}" showNavButton="{device&gt;/isPhone}">
    <content>
        <ObjectHeader id="detailHeader" title="{SelectedOption}" introActive="false" titleActive="false" iconActive="false">
            <customData id="customData3">
                <core:CustomData id="coreCustomData3" key="sapDtResourcePath" value="ClaimingHeader"></core:CustomData>
            </customData>
            <attributes id="detailAttributes">
                <ObjectAttribute id="attribute" text="{i18n&gt;detailText}" active="false"></ObjectAttribute>
            </attributes>
            <firstStatus id="detailStatus">
                <ObjectStatus id="status" text="{SelectedOption}">
                    <customData id="customData4">
                        <core:CustomData id="coreCustomData4" key="sapDtResourcePath" value="ClaimingHeader"></core:CustomData>
                    </customData>
                </ObjectStatus>
            </firstStatus>
        </ObjectHeader>
        <IconTabBar id="idIconTabBar" expanded="{device&gt;/isNoPhone}">
            <customData id="customData5">
                <core:CustomData id="coreCustomData5" key="sapDtResourcePath" value="ClaimingHeader"></core:CustomData>
            </customData>
            <items id="detailsItems">
                <IconTabFilter id="iconTabFilter1" key="selfInfo" icon="sap-icon://calendar">
                    <content>
                        <f:SimpleForm id="iconTabFilter1form" minWidth="1024" editable="false" layout="ResponsiveGridLayout" labelSpanL="3" labelSpanM="3" emptySpanL="4" emptySpanM="4" columnsL="1">
                            <f:content>

at the bottom of the code, i want to include this sample code from sapui5 sdk: Code: Bullet Micro Chart

the problem is, that the code of the BulletChart starts with

<core:View controllerName="sap.suite.ui.commons.sample.BulletChart.BulletChart" xmlns="sap.suite.ui.commons" xmlns:core="sap.ui.core">

my problem is, that it doesnt work, if i add this core:View.. inside of mvc:View.. and/or its the other controller, controllerName="sap.suite.ui.commons.sample.BulletChart.BulletChart, which in want to put inside mvc:view , where there is already a controller.

can someone help me and explain me, how to put this BulletChart at this place?

thanks for help! Screenshot on Imageshack what i want to do @ the link below.

Screenshot on Imageshack what i want to do

Aucun commentaire:

Enregistrer un commentaire