当前位置:网站首页>如何修复 SAP UI5 aggregation with cardinality 0..1 相关的错误消息
如何修复 SAP UI5 aggregation with cardinality 0..1 相关的错误消息
2022-08-02 23:30:00 【华为云】
错误消息:
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>
边栏推荐
- js基础知识整理之 —— 判断语句和三元运算符
- 程序员如何优雅地解决线上问题?
- markdown语法
- 解决错误:Optional int parameter ‘pageSize‘ is present but cannot be translated into a null value due to
- 简单聊聊MySQL中的六种日志
- 2022 Shandong International Youth Eye Health Industry Exhibition, Vision Health Exhibition, Optometry Exhibition
- NLP commonly used Backbone model cheat sheet (1)
- CAS:474922-22-0,DSPE-PEG-MAL,磷脂-聚乙二醇-马来酰亚胺科研试剂供应
- resubmit 渐进式防重复提交框架简介
- Mock工具之Moco使用教程
猜你喜欢
随机推荐
What is the matter that programmers often say "the left hand is knuckled and the right hand is hot"?
Based on two levels of decomposition and the length of the memory network multi-step combined forecasting model of short-term wind speed
Day117.尚医通:生成挂号订单模块
年近30 ,4月无情被辞,想给划水的兄弟提个醒...
心电记录电路设计(框图/波形以及信号放大器的选择)
函数:计算组合数
即席查询—— Kylin使用
几种常见的跨域解决方法
用了 TCP 协议,数据一定不会丢吗?
Heartwarming AI Review (1)
Rasa 3.x 学习系列- Rasa - Issues 4792 socket debug logs clog up debug feed学习笔记
一文读懂 Web 3.0 应用架构
js基础知识整理之 —— Math
DownMusic summary record
2022中国眼博会,山东眼健康展,视力矫正仪器展,护眼产品展
公司招个程序员,34岁以上两年一跳的不要,开出工资以为看错了
Canonical correlation analysis of CCA calculation process
1 - vector R language self-study
d实验新异常
Cholesterol-PEG-Acid,胆固醇-聚乙二醇-羧基保持在干燥、低温环境下