Dear Experts, sorry for a bit long for this comment. I am the first time using the fragment and faced some problems. Hope expert can guide me. Do correct me if any part i did wrong
Thanks.
The simpleFinanceFragment was created based on view.
In controller, i declared oMyFragment as global variable and onHomePressed event as shown
console:
inside simpleForm.fragment.xml: (I wonder how to set the viz properties in the bold part since i only call the fragment at the onHomePressed event?)
<core:FragmentDefinition xmlns="sap.m"
xmlns:l="sap.ui.layout"
xmlns:form="sap.ui.layout.form"
xmlns:mvc="sap.ui.core.mvc"
xmlns:core="sap.ui.core"
xmlns:viz="sap.viz.ui5.controls">
<Page id="SFT" navButtonPress="onNavBack" showNavButton="true" title="Simple Finance">
<content>
<ScrollContainer focusable="true" height="100%" horizontal="false" vertical="true" width="100%">
<viz:Popover id="idPopOver"></viz:Popover>
<viz:VizFrame height="1700px" id="idVizFrameBar" uiConfig="{applicationSet:'fiori'}" vizType="bar" width="100%"></viz:VizFrame>
</ScrollContainer>
<form:SimpleForm layout="ResponsiveGridLayout" minWidth="1024" maxContainerCols="2" labelSpanL="4" labelSpanM="5" emptySpanL="1" emptySpanM="1" columnsL="1" columnsM="1" columnsS="1" >
<form:content>
<Label text="Year To Date" />
<DatePicker id="DPRevenue" placeholder="Enter Date " change="handleChange" class="sapUiSmallMarginBottom"/>
<Text text="" />
<Label text="Revenue" />
<Text text="{}" />
<Label text="Year To Date" />
<DatePicker id="DPExpense" placeholder="Enter Date " change="handleChange" class="sapUiSmallMarginBottom"/>
<Text text="" />
<Label text="Expense" />
<Text text="{}" />
<Label text="Year To Date" />
<DatePicker id="DPProfit" placeholder="Enter Date" change="handleChange" class="sapUiSmallMarginBottom"/>
<Text text="" />
<Label text="Period to Profit Changed" />
<Text text="{}" />
</form:content>
</form:SimpleForm>
</content>
</Page>
</core:FragmentDefinition>