首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >智能表SAPUI5

智能表SAPUI5
EN

Stack Overflow用户
提问于 2017-01-11 14:43:46
回答 1查看 529关注 0票数 0

我想使用智能表,但失败了。下面是xml代码:

代码语言:javascript
复制
<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。我想使用智能表,因为我想选择显示列表。(我的列表太多)。

谢谢

问候你,鲍比

EN

回答 1

Stack Overflow用户

发布于 2017-01-11 16:05:10

必须在index.html文件中显式导入组件库

代码语言:javascript
复制
<script id="sap-ui-bootstrap"
    [...]
    data-sap-ui-libs="sap.m, sap.ui.comp"
    [...]
</script>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41584340

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档