我想使用智能表但失败了 . 下面的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加载'sap / ui / comp / smarttable / SmartTable.js':404 - 未找到
我使用sap-ui-core.js版本2.3.0 . 我想使用智能表因为我想选择显示列表 . (我的专栏表太多了) .
谢谢
问候,鲍比
1 回答
您必须在index.html文件中显式导入comp库