sapui5

sapui5 Vizframe and IconTabBar

落爺英雄遲暮 提交于 2020-01-25 13:14:10
问题 I want to develop a sapui5-view with a Tab-View. On the first tab there have to be two donut-charts (sap.viz.ui5.controls). For Tab-View I'm using the IconTabBar. I can display the charts without the IconTabBar but when I implement the chart-view in the tab-view everthing is empty. Also when I put the two donut-charts in a HorizontalLayout. Has anyone an idea? kind regards Kirsten Tab-View: <Page id="detail_Tab" title="{i18n>Title}" showNavButton="false" > <IconTabBar> <items> <IconTabFilter

SAPUI5: Custom filtering contains for a dynamic binding from controller

懵懂的女人 提交于 2020-01-25 09:32:18
问题 I would like to use a custom filtering contains like here : https://sapui5.hana.ondemand.com/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBoxFilteringContains but problem is oLocation.setFilterFunction is not a function :( items are not defined into combobox : <ComboBox id="my-id" selectionChange='onChange'> <core:Item key="{key}" text="{text}" /> </ComboBox> because they are define in controller : oLocation.bindItems({ path: "backEnd>/Prod(Id1='" + Subid+ "',cat='" + vBpId + "'

Why can I give items as property?

不想你离开。 提交于 2020-01-25 07:39:25
问题 The Table is extended from the ListBase. On the Table, I can you use items aggregation from ListBase as a property like as following: <Table inset="false" items="{ path: '/ProductCollection', sorter: { path: 'Name' } }"> Why can I use items as a property, although is defined as aggregation? 回答1: In UI5, there are basically two ways of filling an aggregation. One is by adding the elements directly, and the other is to bind them to a model. Your example shows the latter case, where the items

SAPUI5 logOff() with Shell

烈酒焚心 提交于 2020-01-25 03:50:06
问题 How would I realize the logoff function in Shell control having this API example: https://sapui5.hana.ondemand.com/sdk/docs/api/symbols/sap.ui.commons.ApplicationHeader.html#event:logoff var oLogoff = new sap.ui.commons.ApplicationHeader(); ... // within the Shell (function logout) logout : function(oEvent) { oLogoff.fireLogoff(); // this.fireLogoff() also not working }, ... EDIT: oShell.fireLogout(); --> seems to be right, but this Ends up in an error "Not enough stack Memory" .. anybody any

How to get the reference id of an element in another view - UI5

穿精又带淫゛_ 提交于 2020-01-25 02:59:04
问题 How can I get the reference id of an element in another view? Like for example I have the following file structure (mvc) -view |-- View1.view.xml |-- View2.view.xml -controller |-- View1.controller.js |-- View2.controller.js Assuming that during runtime of View2.controller.js , how can I get a certain element in View1.view.xml ? 回答1: You can use relative navigation. Do not use absolute Navigation, since that will not work anymore if you change like from local html to a FioriLaunchpad.

Return excel file created in servlet as response

自古美人都是妖i 提交于 2020-01-23 09:20:40
问题 I've created excel file using Apache POI and tried to return it as response to ajax call. I want the browser to prompt "save the created file" window. The problem is that I get gibbrish in the servlet's response and no prompts or whatsoever I've found similar problems here, on StackOverflow, but the solutions to their issues doesn't work for me (or I miss something). Here the problem was solved by using html tags, but I can't (as far as I know) use them in SAPUI5. And here is a very similar

sap.ui.table.Table: not able to see all data

浪尽此生 提交于 2020-01-16 08:46:06
问题 I am not able to scroll down till last row. I have to use ↓ key to reach it. Heights are variable for each row. Each row can show maximum 3 line of text. <t:Table id="phraseTable" class="phraseTable" columnHeaderHeight="21" enableColumnReordering="false" selectionMode="Single" cellClick="onCellClick" visibleRowCountMode="Auto" selectionBehavior="RowOnly" rows="{dataModel>/phraseTable}" > <t:columns> <t:Column hAlign="Center" resizable="true"> <Label text="No." wrapping="true" /> <t:template>

How to change the color of row in table (SAPUI5)?

◇◆丶佛笑我妖孽 提交于 2020-01-15 10:41:26
问题 I have a table in which data is coming from back end. Based on particular condition(data coming from back end (gateway service)), if that condition is true then that particular row will have different color and will have a link on full row. And if condition is false then it will be a normal row. So how to achieve it ? 回答1: Semantic colors for rows are now supported which can be leveraged by using the property highlight on ColumnListItem when using sap.m.Table (since 1.44): <ColumnListItem

Table dynamic loading SAPUI5 / UI5

眉间皱痕 提交于 2020-01-15 03:56:28
问题 I want to display a huge set of data in a SAPUI5-Table component. I used to implement these datatables with dynamically loading, which means that the table initially loaded ~50 records. After the user scrolled down far enough, the next set of 50 records were loaded into the table. This way it was possible for me to display a table of more than 160.000 entries without any performance issues. Now I need to do the same with SAPUI5-Table. I already implemented the server side, the OData service

Event for view leave

我与影子孤独终老i 提交于 2020-01-14 10:48:22
问题 I declared a controller for a view in my SAPUI5 application. Now I want to perform tasks when the view is left by the user. There is already a possibility to add a callback function to attachRoutePatternMatched to perform tasks when the view is navigated by the user now I need a equivalent function to handle a leave of the view. I use a SplitContainer as parent container onInit: function() { this._oRouter = this.getOwnerComponent().getRouter(); this._oRouter.attachRoutePatternMatched(this.