sapui5

How to treat bootstrap's data-sap-ui-libs vs manifest's sap.ui5/dependencies/libs?

♀尐吖头ヾ 提交于 2021-02-19 06:11:53
问题 I usually declare all standard libraries that the application depends on in the manifest under sap.ui5/dependencies/libs . Now what should I put in the bootstrap argument data-sap-ui-libs , the same libraries? What are the effects if I put less / more in data-sap-ui-libs ? How do they differ? PS. I couldn't find this in SAP's documentation, but please proof me wrong. :-) 回答1: What are the effects if I put less/more in data-sap-ui-libs ? How do they differ? My recommendation is to remove data

How to treat bootstrap's data-sap-ui-libs vs manifest's sap.ui5/dependencies/libs?

杀马特。学长 韩版系。学妹 提交于 2021-02-19 06:11:36
问题 I usually declare all standard libraries that the application depends on in the manifest under sap.ui5/dependencies/libs . Now what should I put in the bootstrap argument data-sap-ui-libs , the same libraries? What are the effects if I put less / more in data-sap-ui-libs ? How do they differ? PS. I couldn't find this in SAP's documentation, but please proof me wrong. :-) 回答1: What are the effects if I put less/more in data-sap-ui-libs ? How do they differ? My recommendation is to remove data

DatePicker From and To

安稳与你 提交于 2021-02-19 06:04:23
问题 In a form, I have two DatePicker fields which are From and To . In this case user should not be able to choose a value for To less than what he/she choose for the From field. I just wanted to know is there any SAPUI5 native way to do this comparison and validate the DatePicker fields? In the image blow, you can see that the From has a greater value than the To , which is wrong! In this case, I need to show the validation error around the fields. 回答1: Assume you have the following 2 DatePicker

Number of items limited to around 100

为君一笑 提交于 2021-02-19 05:22:23
问题 I've created the following Input field. var oCityInput = new Input({ // sap/m/Input showSuggestion: true, showTableSuggestionValueHelp: true, suggestionItems:{ path: "/cities", template: new ListItem({ // sap/ui/core/ListItem text: "{cname}", additionalText: "{provi}" }), }, }); The "cities" array contains around 8400 record, but when I type some character the suggestion function it seems that is looking for only in the first 100 items of the array. I've created an example in jsbin. If you

Number of items limited to around 100

隐身守侯 提交于 2021-02-19 05:22:10
问题 I've created the following Input field. var oCityInput = new Input({ // sap/m/Input showSuggestion: true, showTableSuggestionValueHelp: true, suggestionItems:{ path: "/cities", template: new ListItem({ // sap/ui/core/ListItem text: "{cname}", additionalText: "{provi}" }), }, }); The "cities" array contains around 8400 record, but when I type some character the suggestion function it seems that is looking for only in the first 100 items of the array. I've created an example in jsbin. If you

How to add a line break to text in UI5?

淺唱寂寞╮ 提交于 2021-02-13 17:26:30
问题 The escape character \n and Unicode character \u000a will only work in JavaScript. However, I'm trying to add a line break in XML view as below. But doesn't work: <u:TimelineItem text="First Line\n SecondLine" /> 回答1: New lines in text controls can be added with the following characters: In XML views or XML fragments: Line feed : or . In combination with carriage return : or . In JS or i18n*.properties files: Line feed : \n or \u000a . In combination with carriage return : \r\n or

UI5-培训篇-Fiori培训

狂风中的少年 提交于 2021-02-12 00:52:55
1.学习网站:  SAPUI5学习地址:   https://blog.csdn.net/stone0823/article/category/6650292/1?  SAPUI5文档:   https://sapui5.hana.ondemand.com/#/demoapps  SAP Build 模型:   https://developers.sap.com/tutorials/build-create-prototype.html  SAPUI5 Blogs:   https://blogs.sap.com/tags/500983881501772639608291559920477/   2.培训内容:  2.1初学导航    UI5-Fiori初学者导航  2.2环境搭建   Eclipse环境:    UI5-学习篇-1-Eclipse开发工具及环境搭建   Local-SAP WEB IDE:    UI5-学习篇-3-Local SAP WEB IDE下载   SCP-SAP WEB IDE:    UI5-学习篇-4-SCP-SAP WEB IDE登录  2.3SAP后端创建OData    UI5-学习篇-5-SAP创建OData服务-Structure UI5-学习篇-6-SAP创建OData服务-RFC     2.4UI5开发   Local-SAP

The spec stops running and hangs

非 Y 不嫁゛ 提交于 2021-02-11 15:10:23
问题 I've got a problem when using UIVeri5 to testing an app built by Fiori Elements. The test script is hanging there (for most of the time) at the first step until timeout. What's worse, I found in very rare case, it will succeed by passing the step. But the passing case cannot be easily reproduced. Here is my partial_release.spec.js . describe("partial_release", function () { it('should load the app', function() { debugger; expect(browser.getTitle()).toBe('Manage Security Deposits'); }); });

Multiple items path in sap.m.Table

删除回忆录丶 提交于 2021-02-11 13:48:31
问题 In the items property of Table I set my path: items="{path: 'model>/elements/idStabMagTable/elements/'}"> Now I want map two different model ( model with data and enable that manage the type of row) <items> <ColumnListItem type="{enable>row_enable}"> //"Navigation" or none <cells> <Text text="{model>society/description}"/> ... </cells> </ColumnListItem> </items> This is my model model : "idTable": { "elements": [ { "language": { "code": "01", "description": "ITALIANO" }, "scheda": "rome" }, {

ODataModel aggregation's getBindingContext() returns undefined [duplicate]

Deadly 提交于 2021-02-11 12:38:06
问题 This question already has answers here : getBindingContext() Returns undefined (2 answers) Closed 2 years ago . I have a sap.m.VBox control, of which the items aggregation is bound to an ODataModel dataset, and as such is being populated by a sap.m.HBox template control containing multiple sap.m.Input controls (which are bound to the respective ODataModel's dataset properties) In code: <VBox items="{/My_ODatamodel_Dataset}"> <items> <HBox> <Input value="{property1} change="doSomething"/>