我有一个简单的观点:
这是我的 XML 代码:
<?xml version="1.0" encoding="UTF-8"?>
<core:View xmlns:core="sap.ui.core" xmlns="sap.m" xmlns:com="sap.ui.commons" xmlns:f="sap.ui.layout.form" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:l="sap.ui.layout" controllerName="InRETL.view.Cash">
<Page showNavButton="true" title="Cash">
<ObjectHeader title="Cash" number="30.000" numberUnit="?" />
<IconTabBar backgroundDesign="Transparent">
<items>
<IconTabFilter icon="sap-icon://sales-order-item" text="Details">
<f:SimpleForm maxContainerCols="2" labelSpanL="3" labelSpanM="3" labelSpanS="3" emptySpanL="0" emptySpanM="0" emptySpanS="0" columnsL="2" columnsM="2" columnsS="2" editable="true" layout="ResponsiveGridLayout">
<f:content>
<core:Title level="H4" emphasized="true" text="Notes" />
<!-- <Image
src="images/200a.png"
width="50px"
heigh="30px" >
</Image> -->
<Label text="200 ?" />
<Input editable="false" value="2000" />
<Label text="100 ?" />
<Input editable="false" value="2000" />
<Label text="50 ?" />
<Input editable="false" value="2000" /> …Run Code Online (Sandbox Code Playgroud) 我使用以下代码从 sap.m 创建了一个工具栏:
var oPage = new sap.m.Page({
title: "Statusverfolgung",
footer: new sap.m.Toolbar({
content: [
new sap.m.Button({
text: "Next status"
})
]
}),
content: [
oBox
]
});
Run Code Online (Sandbox Code Playgroud)
现在这个按钮被放置在左边。我怎样才能把它放在右边?
在 SAP Web IDE 中,我尝试使用布局编辑器来创建视图。我的项目使用 JSON 模型,而不是 oData 模型。
在布局编辑器中,查看属性,“数据集” - 有没有办法直接分配一个 JSON 文件用作模拟数据的源,而无需使用 metadata.xml 文件?
当前,只有在正确位置存在 metadata.xml 文件时,才会填充“数据集”下拉菜单。
我使用的是 1.26.10。所以我正在执行
jQuery.sap.debug(true)
Run Code Online (Sandbox Code Playgroud)
但是当我对图书馆 1.40.7 做同样的事情时。它没有加载任何 dbg 文件
sap.ui.core.Title和 之间的主要区别是sap.m.Title什么?是否有特定的限制、约定甚至Fiori 指南何时使用哪个控件?
看起来 sap.m.Title 较新,但使用来自 sap.ui.core 的对象。
我是 OPA5 集成测试的新手,所以我正在阅读有关开发指南的教程。第一个示例代码中and包含此内容iTeardownMyAppFrame()。
Run Code Online (Sandbox Code Playgroud)// Assertions Then.onThePostPage.theTitleShouldDisplayTheName("Jeans").and.iTeardownMyAppFrame();
我想知道and究竟是什么,但我找不到任何关于它的文档。该and属性包含在从 的waitFor方法返回的承诺中sap.ui.test.Opa5,如下图所示:
来自 API 参考:
{jQuery.promise} 一个成功就解决的承诺
所以我查看了关于承诺的jQuery 文档,但我找不到任何关于and那里的信息,这表明返回的 jQuery.promise 是由 OPA5 扩展的。
iTeardownMyAppFrame 没有 and像我想象的那样工作正常(因为它总是返回相同的承诺)。那么目的是and什么?它只是语法糖吗?有人因为丢失而遇到错误and吗?有没有我忽略的关于它的文档?
PS:如果您需要使用 OPA5 进行集成测试的最小示例,请告诉我。
有没有办法以编程方式将过渡效果反转为向后滑动而不是 SAPUI5 中的向前滑动?
SplitApp当用户用户按下按钮时,我想“返回”到父元素(不是 a )。当前的实现有效,但向前滑动,这并不表明正确的方向:
var oRouter = sap.ui.core.UIComponent.getRouterFor(this);
oRouter.navTo('competitions', {
showId: this.iShowId,
});
Run Code Online (Sandbox Code Playgroud)
navTo似乎没有任何选择:https :
//openui5.hana.ondemand.com/#docs/api/symbols/sap.ui.core.routing.Router.html#navTo
正常的浏览器后退向后滑动。
如果有的话,我的替代方案是什么?
我想在单击按钮时更改 customData 值,我可以使用 oEvent.getSource().data("key") 获取该值,但如何重置它?
oEvent.getSource().data().key =1
上面的代码不起作用
I have a SAPUI5 application. The translated text is shown wrongly in a dialog, while the translation is shown correct in the launchpad. Please see the following picture:
While the translation file is loaded for German language, it does not show [ÖÄÜß] correctly in the dialog. However it doesshows ö correctly in the launchpad page.
How can I solve it?