Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
同一页面中的SAPUI5 Fiori智能表格和其他控件_Sapui5 - Fatal编程技术网

同一页面中的SAPUI5 Fiori智能表格和其他控件

同一页面中的SAPUI5 Fiori智能表格和其他控件,sapui5,Sapui5,我想知道,我是否可以在同一页面中拥有一个智能表(带智能筛选栏)以及其他Fiori控件,如计划日历、授权图表或其他响应表 由于包含智能表的页面必须在页面默认模型中包含表的oData服务,因此我们可以为其他控件定制UI代码和模型 样品筛 我不明白为什么会有问题。我创建了一个带有和的快速UI5应用程序 顺便说一句,我从第一个智能表示例开始 希望这有帮助 查看 <mvc:View xmlns:core="sap.ui.core" xmlns="sap.m" xmlns:smartFilterBar

我想知道,我是否可以在同一页面中拥有一个智能表(带智能筛选栏)以及其他Fiori控件,如计划日历、授权图表或其他响应表

由于包含智能表的页面必须在页面默认模型中包含表的oData服务,因此我们可以为其他控件定制UI代码和模型

样品筛


我不明白为什么会有问题。我创建了一个带有的快速UI5应用程序

顺便说一句,我从第一个智能表示例开始

希望这有帮助

查看

<mvc:View xmlns:core="sap.ui.core" xmlns="sap.m" xmlns:smartFilterBar="sap.ui.comp.smartfilterbar" xmlns:smartTable="sap.ui.comp.smarttable"
xmlns:mvc="sap.ui.core.mvc" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:unified="sap.ui.unified"
xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1" controllerName="sap.ui.comp.sample.smarttable.SmartTable"
height="100%">
<App>
    <pages>
        <Page title="Title">
            <content>
                <VBox fitContainer="false">
                    <smartFilterBar:SmartFilterBar id="smartFilterBar" entitySet="LineItemsSet" persistencyKey="SmartFilter_Explored"
                        basicSearchFieldName="Bukrs" enableBasicSearch="true">
                        <smartFilterBar:controlConfiguration>
                            <smartFilterBar:ControlConfiguration key="Bukrs">
                                <smartFilterBar:defaultFilterValues>
                                    <smartFilterBar:SelectOption low="0001"></smartFilterBar:SelectOption>
                                </smartFilterBar:defaultFilterValues>
                            </smartFilterBar:ControlConfiguration>
                            <smartFilterBar:ControlConfiguration key="Gjahr">
                                <smartFilterBar:defaultFilterValues>
                                    <smartFilterBar:SelectOption low="2014"></smartFilterBar:SelectOption>
                                </smartFilterBar:defaultFilterValues>
                            </smartFilterBar:ControlConfiguration>
                        </smartFilterBar:controlConfiguration>
                        <!-- layout data used to make the table growing but the filter bar fixed -->
                        <smartFilterBar:layoutData>
                            <FlexItemData shrinkFactor="0"/>
                        </smartFilterBar:layoutData>
                    </smartFilterBar:SmartFilterBar>
                    <smartTable:SmartTable id="LineItemsSmartTable" entitySet="LineItemsSet" smartFilterId="smartFilterBar" tableType="Table"
                        useExportToExcel="true" beforeExport="onBeforeExport" useVariantManagement="false" useTablePersonalisation="true" header="Line Items"
                        showRowCount="true" persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true" app:useSmartField="true"
                        class="sapUiResponsiveContentPadding">
                        <!-- layout data used to make the table growing but the filter bar fixed -->
                        <smartTable:layoutData>
                            <FlexItemData growFactor="1" baseSize="0%"/>
                        </smartTable:layoutData>
                    </smartTable:SmartTable>
                </VBox>
                <PlanningCalendar id="PC1" rows="{path: '/people'}" appointmentsVisualization="Filled" groupAppointmentsMode="expanded"
                    appointmentsReducedHeight="true" appointmentSelect="onClickAssignment" showEmptyIntervalHeaders="false" viewChange="onStartDateChange"
                    startDateChange="onStartDateChange" rowSelectionChange="onResourceSelectedInCalendar" rowHeaderClick="onRowHeaderClick"
                    intervalSelect="onIntervalSelect" class="calendarMarginBottom">
                    <toolbarContent>
                        <Title text="Calendar" titleStyle="H4"/>
                        <ToolbarSpacer/>
                    </toolbarContent>
                    <rows>
                        <PlanningCalendarRow id="PCR1" icon="{pic}" title="{name}" text="{role}" key="{key}"
                            appointments="{path : 'appointments', templateShareable: 'true'}" intervalHeaders="{path: 'headers', templateShareable: 'true'}">
                            <appointments>
                                <unified:CalendarAppointment id="MCA1" startDate="{start}" endDate="{end}" icon="{icon}" title="{title}" text="{info}" type="{type}"
                                    tentative="{tentative}" hover="onAppointmentHover"/>
                            </appointments>
                            <intervalHeaders>
                                <unified:CalendarAppointment startDate="{start}" endDate="{end}" icon="{icon}" title="{title}" type="{type}"></unified:CalendarAppointment>
                            </intervalHeaders>
                        </PlanningCalendarRow>
                    </rows>
                </PlanningCalendar>
            </content>
        </Page>
    </pages>
</App>

我不明白为什么这会是个问题。我创建了一个带有的快速UI5应用程序

顺便说一句,我从第一个智能表示例开始

希望这有帮助

查看

<mvc:View xmlns:core="sap.ui.core" xmlns="sap.m" xmlns:smartFilterBar="sap.ui.comp.smartfilterbar" xmlns:smartTable="sap.ui.comp.smarttable"
xmlns:mvc="sap.ui.core.mvc" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:unified="sap.ui.unified"
xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1" controllerName="sap.ui.comp.sample.smarttable.SmartTable"
height="100%">
<App>
    <pages>
        <Page title="Title">
            <content>
                <VBox fitContainer="false">
                    <smartFilterBar:SmartFilterBar id="smartFilterBar" entitySet="LineItemsSet" persistencyKey="SmartFilter_Explored"
                        basicSearchFieldName="Bukrs" enableBasicSearch="true">
                        <smartFilterBar:controlConfiguration>
                            <smartFilterBar:ControlConfiguration key="Bukrs">
                                <smartFilterBar:defaultFilterValues>
                                    <smartFilterBar:SelectOption low="0001"></smartFilterBar:SelectOption>
                                </smartFilterBar:defaultFilterValues>
                            </smartFilterBar:ControlConfiguration>
                            <smartFilterBar:ControlConfiguration key="Gjahr">
                                <smartFilterBar:defaultFilterValues>
                                    <smartFilterBar:SelectOption low="2014"></smartFilterBar:SelectOption>
                                </smartFilterBar:defaultFilterValues>
                            </smartFilterBar:ControlConfiguration>
                        </smartFilterBar:controlConfiguration>
                        <!-- layout data used to make the table growing but the filter bar fixed -->
                        <smartFilterBar:layoutData>
                            <FlexItemData shrinkFactor="0"/>
                        </smartFilterBar:layoutData>
                    </smartFilterBar:SmartFilterBar>
                    <smartTable:SmartTable id="LineItemsSmartTable" entitySet="LineItemsSet" smartFilterId="smartFilterBar" tableType="Table"
                        useExportToExcel="true" beforeExport="onBeforeExport" useVariantManagement="false" useTablePersonalisation="true" header="Line Items"
                        showRowCount="true" persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true" app:useSmartField="true"
                        class="sapUiResponsiveContentPadding">
                        <!-- layout data used to make the table growing but the filter bar fixed -->
                        <smartTable:layoutData>
                            <FlexItemData growFactor="1" baseSize="0%"/>
                        </smartTable:layoutData>
                    </smartTable:SmartTable>
                </VBox>
                <PlanningCalendar id="PC1" rows="{path: '/people'}" appointmentsVisualization="Filled" groupAppointmentsMode="expanded"
                    appointmentsReducedHeight="true" appointmentSelect="onClickAssignment" showEmptyIntervalHeaders="false" viewChange="onStartDateChange"
                    startDateChange="onStartDateChange" rowSelectionChange="onResourceSelectedInCalendar" rowHeaderClick="onRowHeaderClick"
                    intervalSelect="onIntervalSelect" class="calendarMarginBottom">
                    <toolbarContent>
                        <Title text="Calendar" titleStyle="H4"/>
                        <ToolbarSpacer/>
                    </toolbarContent>
                    <rows>
                        <PlanningCalendarRow id="PCR1" icon="{pic}" title="{name}" text="{role}" key="{key}"
                            appointments="{path : 'appointments', templateShareable: 'true'}" intervalHeaders="{path: 'headers', templateShareable: 'true'}">
                            <appointments>
                                <unified:CalendarAppointment id="MCA1" startDate="{start}" endDate="{end}" icon="{icon}" title="{title}" text="{info}" type="{type}"
                                    tentative="{tentative}" hover="onAppointmentHover"/>
                            </appointments>
                            <intervalHeaders>
                                <unified:CalendarAppointment startDate="{start}" endDate="{end}" icon="{icon}" title="{title}" type="{type}"></unified:CalendarAppointment>
                            </intervalHeaders>
                        </PlanningCalendarRow>
                    </rows>
                </PlanningCalendar>
            </content>
        </Page>
    </pages>
</App>