Questions tagged [sapui5]
This tag 'sapui5' covers both the proprietary (SAPUI5) and the open source (OpenUI5) versions of the framework. When asking about Fiori elements, consider adding [odata] and [sap-fiori] tags accordingly.
6,889
questions
0
votes
0
answers
10
views
SAP UI5 binding issue. Data fetched from Odata but doesn't show on view due to binding issue in nested arrays
I have created a fiori app and trying to fetch data using odata read function in controller.What is the right way to access data in view.
Backend request that works fine : /sap/opu/odata/sap/ZodatSRV/...
0
votes
0
answers
9
views
How i can set a default value in a cds view for a smarttable
i have a question how i can set a default value in a cds view for a fiori elements app(based on annotations) what i tryed. I want to have the current date as a default value.
@Consumption.filter: { ...
0
votes
1
answer
23
views
FLP Duplicate Component ID
We are facing an issue, where clicking on the tile twice in the same session is getting us an error in console saying :
Error: Error: adding object "component" with duplicate id
We have ...
0
votes
0
answers
18
views
Value state error issue when scrolling grid table on List Report app
As you can see from video, marked cells are always visible and do not follow their selected rows.
This is a grid table on list report app, created with fiori elements and value state is implemented in ...
0
votes
1
answer
32
views
SAP Runtime error when showing Multiple parents of an entity using CDS hierarchy in the SAPUI5 Tree table
I'm using CDS parent child hierarchy to get multiple parents of an entity.
There is no problem with the data that has a single parent.
But when I try to display the data that has multiple parents, it'...
0
votes
0
answers
44
views
Understanding prototypical inheritance in SAPUI5
I have understood the prototypical inheritance in Java Script. In Java Script apart from primitive data types all are objects. For example If you create a function its prototype is an empty function ( ...
0
votes
0
answers
105
views
Failed to load UI5 component for navigation intent: Error: adding object "component" with duplicate id
I have an issue while accessing a Fiori application for the second time on the launchpad. The error message I am receiving is:
Failed to load UI5 component for navigation intent
#ZUI5_PROMO_MANU-...
0
votes
0
answers
21
views
SAPUI5 TypeScript - jQuery.sap.registerModulePath
How to import resources from another application in a TypeScript file in a SAPUI5 project (JavaScript analogue of jQuery.sap.registerModulePath() )?
-2
votes
0
answers
42
views
SAPUI5: How to refresh List Control (and JSONModel behind it) after updating that List?
I'm currently building a list where you can delete certain items. When selecting an item and pressing the delete button a function is called, which sends the DELETE request to the server where the ...
0
votes
0
answers
22
views
How to use clusters in UI5 map?
I have a basic SAP UI5 map, a GeoMap in a MapContainer with Spots. I would like to use clustering, but I can't find out, how to do that, a long time ago.
Here you can see my basic geomap, with the ...
0
votes
1
answer
19
views
How to disable xsrf validation on sap web ide?
I am able to properly setup sap web ide on my local but after login I keep getting xsrf error on the browser.
I want to disable it in my local for local development and was not able to find any ...
1
vote
1
answer
19
views
SAP Web Ide throwing errors when starting on mac
SAP Web IDE throwing errors on startup
Hello, I'm trying to setup SAP Web IDE on mac and I keep getting errors in my local like:
!ENTRY com.sap.webide.orionplugin 4 0 2023-03-07 08:49:11.762
!MESSAGE ...
0
votes
1
answer
64
views
How to show/hide Input fields based on radiobutton/checkbox selection in sap ui5?
so I am doing a form and I need to display, lets say both of the Inputs if a radiobutton is selected. If it's not selected, nothing should happen and the user won't see these Inputs. They should be ...
0
votes
0
answers
38
views
How to configure the list option of Confirmation Popup for Discarding a Draft?
I have created the Draft page using Fiori sapui5.
When we open the page and enter some data on page,
after that click on back button of page without saving the data.
Decision dialog Popup is open ...
0
votes
1
answer
31
views
Nested aggregation binding and access parent properties
I have this JSON data:
oDC = [
{
"DC_GROUP":"TEST_DC_GROUP",
"COUNT":0,
"MULTIPLE_DATA_COLLECT":"false",
"USERREF"...
0
votes
0
answers
30
views
How to add HTML core control to sap.f view
I have a ui5 Dynamic Page and i need to add the HTML control "<core:HTML id="idHTML" visible="false"/>" to be able to call a pdf. How to merge sap.f and core to ...
0
votes
0
answers
28
views
OData V4 to upload file in SAPUI5
I have an OData V4 service to upload a file. The file upload should create a draft entity and then upload the file for that entity. Creating the draft entity works fine but what is the best way to ...
0
votes
1
answer
17
views
Vizframe column chart label selection item count issue
I encounter with strange test case in which even if there aren't any data in last two column of Vizframe column chart and if you click on label the popup shows "4 Items selected". Is there ...
1
vote
1
answer
23
views
Data binding in UI5
I have an data output from an api as below In the jsonModel samplemodel :
[
{
“Info” : { Id: “id1”, val: [. {id:”subid1”,name : “name1”}]}
},
{
“Info” : { Id: “id2”, val: [. {id:”subid2”,...
0
votes
1
answer
55
views
How to perform DELETE operation on Northwind OData Service (SAPUI5)?
I implemented a SAPUI5 List, in which data from a public Northwind API is displayed.
var odataModel = new sap.ui.model.odata.v2.ODataModel("https://services.odata.org/V2/(S(c0...))/OData/OData....
0
votes
1
answer
63
views
Need to Dynamically Change Headings in Fiori List Report Developed Using SAP Fiori Elements
I do have a Fiori list report developed using SAP Fiori elements. I need to dynamically change the column headings.
I have a filter called "Period" which can be selected as "Monthly&...
2
votes
2
answers
64
views
How to set responsive size to SAPUI5 Dialog with sap.ui.table.Table inside?
I have the following fragment with a dialog. If you see, the dialog is bigger than the table (sap.ui.table.Table), I need to delete the white, or non-data, spaces:
Code used to generate the above ...
0
votes
0
answers
15
views
SmartFilterbar: Is there an annotation to disable the advanced search help and only keep the suggestions?
The search help is too advanced for some use cases, especially the fact that the end-users need to know they have to use '*' before/after their search string to match any substrings. Is there an ...
1
vote
1
answer
32
views
How to add and use a custom style class in SAPUI5
I am new to SAPUI5 and would like to change the text color of a label to red. How can I do this?
I tried:
sap.ui.getCore().byId("lableID").setStyleClass("red");
but the color does ...
1
vote
1
answer
38
views
Karma, Qunit, Typescript, UI5 does not work when using "import" statement
Iam trying to set up my tests to run with Qunit, Karma UI5, and Typescript but I seem to have some probable's with module resolution.
This is my tsconfig
{
"compilerOptions": {
"...
2
votes
0
answers
46
views
How to handle SVG in SAP UI5 Semantic Rendering
I'm trying to convert my SAP UI5 Renderer code to the new version, apiVersion : 2.
I've been able to convert most of my code, but there's a code fragment having SVG in it which I'm not sure how to ...
0
votes
0
answers
22
views
Sync 2 scroll bars sapui5
I have 2 sap.m.Table in one page and I want to sync the scroll bars of these 2 tables.
Every table is in a <m:ScrollContainer id="oScrollSTab" vertical="true">
Can someone ...
0
votes
2
answers
51
views
How to implement custom icon in SAPUI5's Shellbar Control?
I implemented a functionality so that the users of my SAPUI5 application can change between different SAPUI5 themes. Now I would like to place a button in the existing ShellBar of my app to trigger ...
3
votes
1
answer
29
views
How to modify the available filter operators of a smart table
I have a smart table that shows data from odata service. all properties of the entity type are Edm.String.
now i can set a filter for each column of the resulting table with a lot of filter operators.
...
1
vote
0
answers
82
views
What are the supported frontends for CDS parameter annotation @Consumption.derivation?
When annotating an input parameter to a CDS view, which is consumed via oData in a Fiori Elements List Report App, I tried using the @Consumption.dervivation annotation to preset a parameter with a ...
0
votes
1
answer
61
views
How can I use a map in UI5 GeoMap?
I should use the basemap.at free online map to my SAPUI5 application. I can't achieve, to use it.
var oMapConfig = {
"MapProvider": [{
"name": &...
0
votes
0
answers
23
views
SAPUI5 VizFrame false data is picked
I have a sapui5 project with a graph made by vizframe. The graph has two dimensions (Date and Condition) and one measure
(Rest Value). The Rest Value is taken from invoices. But on one Date there can ...
0
votes
1
answer
83
views
Where can I find the sap-ui-cachebuster-info.json file and how is it leveraged?
I'm new to OpenUI5 and I'm trying to understand how the OpenUI5 cache buster works by reading through the documentation. I don't understand where I can find the generated sap-ui-cachebuster-info.json. ...
1
vote
1
answer
64
views
How to switch applying a property binding using ternary operator in Expression Binding?
See, I have a table where duplicate entries are highlighted using the highlight property of sap.m.Table. Now im trying to implement a toggle button that lets the user decide whether he wants the ...
0
votes
1
answer
66
views
How can i open a pdf from a
I was trying to open a pdf from buffer, I try with this code, but when the window open the pdf have the correct number of pages, but all are empty.
Im programin in ui5 and I get this file from ui5 ...
0
votes
1
answer
64
views
BOPF Action oData Function XXX not found in the metadata?
I get the error
Function XXX not found in the metadata !
when i try to use oDataV2Model.callFunction the following way:
oDataModel.callFunction("/XXX", {
methode: "POST",
...
1
vote
1
answer
33
views
UI5 VizFrame info/dual_line, plotArea window end does not work with date object
i am trying to get a plot (vizType: info/dual_line) that initially stops at a given Date (zoom should still work). Available data provides much more data points but the first view should be from '...
1
vote
1
answer
121
views
jsPDF Error: autoTable is not a function in SAP UI5
I am using the jsPDF library for converting a table into a PDF file.
The current code that I have used is giving off an error, that autoTable is not a function.
Here is the code.
sap.ui.define([
&...
0
votes
0
answers
17
views
Using chart in ALP but it can't load data properly when the data comes more than 1000
Currently I'm using line chart in ALP, and I'm using time as x-axis, so when it comes with many data of time(>=1000 ) ,the chart loads data only in 130, and the more weird thing is that when I ...
1
vote
1
answer
101
views
Can I customize the HTML, CSS, and JS for UI5 / Fiori?
Is it possible to add CSS classes and add or edit the JavaScript to make things look and feel different without colliding with SAPUI5 support or releases? Regarding micro animations, loading behavior, ...
0
votes
0
answers
75
views
manifest_appdescriptor.json changes not updated in adaptation project
I have created an SAP FIORI Adaptation project via Web IDE and added new services in manifest_appdescriptor.json file.
Below screenshot of changes done in manifest file:
The service is leaded when I ...
2
votes
0
answers
77
views
How to avoid breaking images and tables despite adding page breaks?
I am having a problem printing in SAPUI5 application.. I have a page formatted with HTML to print the whole page. But the problem are the table and SVG images; even though we applied page breaks, it ...
0
votes
1
answer
16
views
karma config fails to add external project or file in the current project
I have added unit tests in some frontend projects using karma. I have multiple projects in my Git folder. If I run them individually, they work fine. However if there is a dependency of one project in ...
0
votes
1
answer
52
views
How to implement an editing mode in SAPUI5?
I'm currently building a dynamic table within a sapui5 application. Therefore I'm implementing an editing mode, which is triggered through the click of a button. To change the table cells between view-...
1
vote
1
answer
55
views
SAPUI5 Two-way binding: How do I clear/refresh the binding every time I navigate to the app?
I have an issue with two-way binding when returning to a freestyle SAPUI5 app.
Say for example...
I navigate to App 1. The loads the OData fine, via two-way binding.
I then navigate away from App 1 to ...
2
votes
1
answer
41
views
How to write Qunit for attachEventBrowser in UI5
I have a code snippet for which I have to increase code coverage
Following is my controller-
I need to have statements in my qunit for the bold section
sap.ui.define([
"sap/ui/core/mvc/...
0
votes
1
answer
106
views
How to detect `eval` calls when addressing UI5 modules in runtime?
As part of the preparation for the "Asynchronous Module Loading" enablement in FLP, one of its prerequisites is making sure that no eval call is triggered due to the HTML document being ...
0
votes
0
answers
58
views
TimeLine Object picking up only first element of the array
I am trying to create a timeline for the history part of the below json response.
{"type":"l",
"userId":"xxx",
....,
"history":[
{
"...
0
votes
0
answers
66
views
Multiple headers in sap.m table
Please help me in how to set multiple headers and headerSpan in sap.m.table
I have to create a table using sap.m library only and my table should like below image
I tried using vboxes in column->...