我想使用智能表,但失败了。下面是xml代码:
<mvc:View
controllerName="com.taspen.acb.modules.Dosir.FileUpload"
xmlns:l="sap.ui.layout"
xmlns:u="sap.ui.unified"
xmlns:mvc="sap.ui.core.mvc"
xmlns:core="sap.ui.core"
xmlns="sap.m"
xmlns:smartTable="sap.ui.comp.smarttable"
class="viewPadding">
<l:VerticalLayout>
<smartTable:SmartTable entitySet="TableList"
smartFilterId="smartFilterBar" tableType="Table" useExportToExcel="true"
useVariantManagement="false" useTablePersonalisation="true" header="Line Items"
showRowCount="true" persistencyKey="SmartTableAnalytical_Explored"
enableAutoBinding="true" />
</l:VerticalLayout>
</mvc:View>错误显示:错误:无法从resources/sap/ui/comp/smarttable/SmartTable.js: 404加载'sap/ui/comp/smarttable/SmartTable.js‘-找不到
我使用的是sap-ui-core.js版本2.3.0。我想使用智能表,因为我想选择显示列表。(我的列表太多)。
谢谢
问候你,鲍比
发布于 2017-01-11 16:05:10
必须在index.html文件中显式导入组件库
<script id="sap-ui-bootstrap"
[...]
data-sap-ui-libs="sap.m, sap.ui.comp"
[...]
</script>https://stackoverflow.com/questions/41584340
复制相似问题