sapui5

No option to submit and retrieve SAP UI5 application in ABAP Repository

Deadly 提交于 2020-07-14 12:23:05
问题 I got an issue regarding submitting and retrieving SAP UI5 applications. Usually I would create my UI5 project and submit it by right clicking on project and then TEAMS->Share-> then I share my project to ABAP repository. Unfortunately Eclipse won't show me any connections and it shows when I resize the window as showing in first two images(image: error1 and error2). and no repositories are show in eclipse as well(image : error3) I am using Eclipse IDE for Enterprise Java Developers. Version:

OpenUI5: offline documentation in SDK not working?

筅森魡賤 提交于 2020-07-10 07:49:12
问题 When I download "Latest stable release: 1.28.16 (2015-08-18)" from here the documentation is not working. By clicking on \openui5-sdk-1.28.16\index.html the page opens up with empty content. With older versions I also had non working offline documentation, the navigation page was showing, but the "details pane" was empty. Is it only with me (using windows 8.1 and chrome Version 44.0.2403.157 m) or is this something general? 回答1: It is related to the browser security when index.html loads its

Tree Selection SAPUI5 (with checkboxes). Auto check child nodes when parent node is checked

橙三吉。 提交于 2020-06-29 18:51:24
问题 I have a Tree element with MultiSelect mode, which looks good with checkboxes in every tree item. I wanted to make it so if I select one item, all of its children get selected as well. I have the tree in the view: <Tree selectionChange="onPress" itemPress="onPress" includeItemInSelection="true" mode="MultiSelect" items="{path: '/'}" id="Tree"> <headerToolbar> <Toolbar> <content> <Title level="H2" text="Title"/> <ToolbarSpacer/> </content> </Toolbar> </headerToolbar> <StandardTreeItem title="

restrict addEventDelegate to parent hbox only

时间秒杀一切 提交于 2020-06-29 04:21:34
问题 This is a custom control created for my previous question Custom font for currency signs I have two span elements coming next to each other. They sit in the FormattedText . The FormattedText itself sits in the HBox . I want popover fired when user mouses over/out from the hbox . Unfortunately, as I have 2 spans this fires separately when user hovers overs them (thus showing 2 separate popovers, when in fact it should be one). My assumption is that this causes because onmouseover/out is

restrict addEventDelegate to parent hbox only

我的未来我决定 提交于 2020-06-29 04:21:09
问题 This is a custom control created for my previous question Custom font for currency signs I have two span elements coming next to each other. They sit in the FormattedText . The FormattedText itself sits in the HBox . I want popover fired when user mouses over/out from the hbox . Unfortunately, as I have 2 spans this fires separately when user hovers overs them (thus showing 2 separate popovers, when in fact it should be one). My assumption is that this causes because onmouseover/out is

Control for displaying level of cost with currency signs

寵の児 提交于 2020-06-27 03:50:06
问题 This might be an opinionated question, but I'd like to ask it because capabilities of UI5 are quite broad. I need to have these elements as To which I am planning to introduce a custom font. Do you think it's a good solution or is there any better way to do that with some out of the box solutions? 回答1: What you're looking for is sap.m.RatingIndicator . <RatingIndicator editable="false" maxValue="6" value="4" iconSelected="imageOrIconURI1" iconUnselected="imageOrIconURI2" /> API reference

Manipulate icon properties for the last row of table

落花浮王杯 提交于 2020-06-17 15:45:43
问题 In XML view for i have : <Table id="testtable" xmlns="sap.ui.table" rows="{/testdata}" alternateRowColors="true"> <columns> <Column hAlign="Center" label="Col1"> <template> <m:Text text="{dataX}" wrapping="false" /> </template> </Column> <Column hAlign="Center" label="Col2"> <template> <m:Text text="{dataY}" wrapping="false" /> </template> </Column> <Column label="Col3"> <template> <m:HBox> <core:Icon src="sap-icon://show" color="{ parts : [ 'test'], formatter: '.setIconColour'}" /> <core

Define Color of ObjectStatus Text

一世执手 提交于 2020-05-17 03:49:05
问题 I am new to UI5, JS and web developing in general. Following courses on openSAP about SAPUI5, I got this page: The city names are displayed in the tags list/secondStatues/ObjectStatues . I would like to turn city's name color into red if it is "Berlin" . Find here the concerned XML View and the controller.js I'm getting an issue from: XML view sample: <List> <!-- ... --> <secondStatus> <ObjectStatus title="{i18n>statusDeliveryFrom}" text="{ parts: [ { path: 'ToSupplier/Address/City' } ],

FLP: Setting Custom Initial Focus on App Launch Fails

梦想与她 提交于 2020-05-16 13:27:07
问题 I am trying to set initial focus to the first input field in each page of my app. I have implemented the code in the following post and it is working great: How to Set Initial Focus in a View? But I found that it is not working for first view/page in app when it opens from Fiori Launchpad . I found the following code which is getting executed after my onAfterShow : From sap/ushell/renderers/fiori2/Shell-dbg.controller.js Could you please help to solve this? I am using SAP UI5 version 1.56.7.

Uncaught TypeError: Fragment.load is not a function

故事扮演 提交于 2020-05-15 09:47:09
问题 The code below has been copied from UI5 Demo Kit but while I run it, the console is showing the error message that the function Fragment.load is not a function. Please suggest any alternative or highlight issue if any. sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/m/MessageToast", "sap/ui/model/Filter", "sap/ui/model/FilterOperator", "sap/ui/model/json/JSONModel", "sap/m/MessageToast", "sap/ui/core/Fragment" ], function(Controller, MessageToast, Filter, FilterOperator, JSONModel,