【发布时间】:2016-12-14 14:49:29
【问题描述】:
我正在尝试使用 Smart Table 调用 OData 服务。首先,我创建了一个简单的表格,通过它我可以看到表格中的数据。然后我在同一页面上添加了 SmartTable,但它没有显示任何数据。甚至没有创建列。可能是什么原因?
<mvc:View controllerName="com.siemens.hc.controller.View1" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m" xmlns:smartField="sap.ui.comp.smartfield" xmlns:smartFilterBar="sap.ui.comp.smartfilterbar"
xmlns:smartTable="sap.ui.comp.smarttable">
<App>
<pages>
<Page title="{i18n>title}">
<content>
<Table id="idProductsTable" inset="false" items="{/SafetyUpdateSet}">
<headerToolbar>
<Toolbar>
<Title text="Product" level="H2"/>
</Toolbar>
</headerToolbar>
<columns>
<Column width="12em">
<Text text="Product"/>
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<ObjectIdentifier title="{Notification}"/>
</cells>
</ColumnListItem>
</items>
</Table>
<smartTable:SmartTable id="smartTable_ResponsiveTable" tableType="ResponsiveTable" editable="false" entitySet="SafetyUpdateSet"
useVariantManagement="false" useTablePersonalisation="false" header="Notification" showRowCount="true" useExportToExcel="false"
enableAutoBinding="true">
</smartTable:SmartTable>
</content>
</Page>
</pages>
</App>
</mvc:View>
我在 neo-app.json 文件中创建了目的地,并在 Manifest.json 文件中创建了模型。
问候, 马扬克
【问题讨论】:
标签: sapui5