如何修复 SAP UI5 aggregation with cardinality 0..1 相关的错误消息
错误消息:
Assertion failed: multiple aggregates defined for aggregation with cardinality 0…1
引起该错误的 aggregation 名称:flexContent:
查看 xml 视图里该 aggregation,发现其下定义了两个控件:
删除任意一个即可:
如上图所示,我将 Popover 和 VizFrame 重新放置,分别位于不同的 aggregation 里,之后问题消失。
完整的 xml 视图代码:
<mvc:View controllerName="sap.viz.sample.Line.Line" xmlns="sap.m"xmlns:viz="sap.viz.ui5.controls" xmlns:layout="sap.ui.layout"xmlns:mvc="sap.ui.core.mvc" xmlns:viz.feeds="sap.viz.ui5.controls.common.feeds"xmlns:viz.data="sap.viz.ui5.data" height="100%"><layout:FixFlex id='chartFixFlex' minFlexSize="250"><layout:fixContent><viz:Popover id="idPopOver"></viz:Popover></layout:fixContent><layout:flexContent><viz:VizFrame id="jerryFrame" uiConfig="{applicationSet:'fiori'}"height='100%' width="100%" vizType='line'><viz:dataset><viz.data:FlattenedDataset data="{/milk}"><viz.data:dimensions><viz.data:DimensionDefinition name="Week" value="{Week}" /></viz.data:dimensions><viz.data:measures><viz.data:MeasureDefinition name="Revenue" value="{Revenue}" /><viz.data:MeasureDefinition name="Cost" value="{Cost}" /></viz.data:measures></viz.data:FlattenedDataset></viz:dataset><viz:feeds><viz.feeds:FeedItem id='valueAxisFeed' uid="valueAxis" type="Measure"values="Revenue" /><viz.feeds:FeedItem id='valueAxisFeed2' uid="valueAxis" type="Measure"values="Cost" /><viz.feeds:FeedItem id='categoryAxisFeed' uid="categoryAxis" type="Dimension"values="Week" /></viz:feeds></viz:VizFrame></layout:flexContent></layout:FixFlex>
</mvc:View>
更多Jerry的原创文章,尽在:“汪子熙”:
如何修复 SAP UI5 aggregation with cardinality 0..1 相关的错误消息相关推荐
- SAP UI5 应用开发教程之三十九 - SAP UI5 应用出现白屏的一些常见错误和分析方法分享试读版
一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 应用开发教程之一:Hello World SAP UI5 应用开发教程之二:SAP U ...
- SAP UI5 aggregation field type
Aggregation里面的toolbar改成用sap.ui.core/Control: <aggregation cardinality="0..1" name=" ...
- SAP UI5 应用开发教程之三十九 - SAP UI5 应用出现白屏的一些常见错误和分析方法分享
SAP UI5 应用开发完毕后,加载时没有显示任何内容,只有一个白茫茫的空白屏幕(blank screen),无疑是让很多 SAP UI5 开发人员感到沮丧的事情. 然而这种白屏总是伴随着浏览器(比如 ...
- 对 SAP UI5 应用使用 uiveri5 执行测试的 ERR_CONNECTION_REFUSED 错误
错误消息如下图所示: INFO: Expectation FAILED: Failed: javascript error: UI5 dependencies are not loaded on th ...
- How is SAP UI5 Aggregation designed
我的sample code: 最后是framework debug <html> <script>function Aggregation(name) {this.mAggre ...
- 如何分析SAP UI5应用的undefined is not a function错误
Recently I meet with an annoying Javascript error "undefined is not a function" during my ...
- 如何自行分析SAP WebClient UI开发环境里抛出的错误消息根源
In this blog I will demonstrate how I resolve the error message "endless binding loop" rai ...
- 在SAP Smart Business workspace里创建KPI tile的错误消息
i042416 commented on May 25, 2016 We can observe in Chrome development tool that the maintained navi ...
- 在SAP Smart Business workspace里创建KPI tile的错误消息分析
i042416 commented on May 25, 2016 We can observe in Chrome development tool that the maintained navi ...
最新文章
- java 线程的函数_Java线程总结
- 查找数组中第二个最小元素
- 程序员一定要知道的11个实用工具网站
- Citrix小贴纸---连接XenAPP时协议驱动程序错误
- java程序运行过程数据丢失怎么办_java运行过程中OutOfMemoryError是什么原因?怎么解决...
- Python书籍推荐:《Python编程之美:最佳实践指南》
- 树莓派4外置wifi天线_只需25美元,算力提升3倍:树莓派4计算模组上线
- windows server 部署java Web项目
- linux上的smartsvn图形客户端,linux 下svn图形客户端smartsvn 安装
- 未root的情况下获取墨墨背单词的databases文件夹
- Python(爬虫篇)--- 验证码破解【二】滑块验证码
- 计算机程序 申请专利,计算机程序能申请专利吗
- 应用程序配置不正确,程序无法启动的问题小结
- 【JDK7】新特性(3) JDBC4.1
- 手机注册邮箱格式是什么?电子邮箱地址怎么填?
- Linux命令查看压缩包文件目录
- html5-创建浮动框架
- python解释器的提示符号是什么_python解释器的提示符是什么
- 易企cms模板调用标签列表
- 游戏人物模型贴图制作方法及制作小技巧