Questions tagged [sapui5]
This tag 'sapui5' covers both the proprietary (SAPUI5) and the open source (OpenUI5) versions of the framework. When asking about smart controls or Fiori Elements, consider adding [odata] and [sap-fiori] tags accordingly.
6,740
questions
1
vote
1
answer
18
views
SAPUI5: Control cannot override Table row click
I have SAP microchart in smart table.
This smart table has navigation to other app, when user clicks on table row (via "itemPress" method).
Now, I implemented StackedBarMicroChart in one of ...
0
votes
1
answer
17
views
Change template of row binding in sap.ui.Table
I have a sap.ui.table.Table which I want to make editable. In the SAPUI5 Samples I can see that SAP replaces the m.Texts with m.Inputs in the column list items of a sap.m.Table. I have a sap.ui.table....
0
votes
0
answers
16
views
How to set fixed y-axis values in SAPUI5 VizFrame Column Chart using XMLView?
I have created a VizFrame Column Chart in SAPUI5 using oData. Now I need to put fixed values in y-axis (Dimension axis) since I want to show the days of the week on the y-axis, and how many hours ...
2
votes
0
answers
12
views
SAPUI5 & OData v4: Update of derived entity leads to Error: Not a (navigation) property
OpenUI5 version: 1.95
Browser/version: Chrome Version 101.0.4951.67
I have an OData v4 service with following Entity types (snippet from metadata document):
"name.space": {
"$Alias&...
0
votes
0
answers
10
views
SAPIU5 collapsible header - Show Filter Count
I have SAPUI5 DynamicPageHeader in Fiori app, which looks like this:
It has a "collapsible" link & one filter bar is selected with value in it.. When I collapse the header, I want to ...
0
votes
1
answer
53
views
Scaleproblem: VizFrame Dual Barchart Rendering of Values
I made a dual barchart with vizframe, but I ran into a problem.
The values of the two datasets don't render on the same scale.
This makes the comparison of the datasets near impossible.
Example:
show ...
-2
votes
0
answers
16
views
solution: ui5 cmd not recognized as internal or external command
solution:
locate where ui5 cli node libraries installed, by running npm list -g
open the environment variables of your system by typing the 'environment variables' in the search bar of start button
...
2
votes
1
answer
31
views
Customize ui5 web component Side Navigation
I am trying to use and customize the side navigation component but I can not change it's background color, e.g.
ui5-side-navigation { background-color: yellow; }
does not have any effect on the ...
-2
votes
0
answers
16
views
I am trying to retrieve data from odata into grid table in UI. I am trying to fetch boolean value. how to set property boolean in xml [closed]
Log-dbg.js:456 2022-05-11 14:28:30.522300 FormatException in property 'text' of 'Element sap.m.ObjectStatus#__status7-__clone2': Type 'sap.ui.model.odata.type.Raw' does not support formatting
Hint: ...
-1
votes
0
answers
24
views
SAPUI5. Odata. Save some records
I need to save some record.
var mParameters = {};
for (i=...) {
oData = oMass[i];
mParameters.groupId = "changesGroup" + i;
oModel.create("/Set", oData, mParameters);
}
for (...
0
votes
0
answers
36
views
Why SAPUI5 Page is not Loading and my local sapui5 projects having ModuleError?
Flexible Programming Model Explorer from Tools - Demo Kit - SAPUI5 SDK
I can't access this url. At the same time, I cannot enter local projects that I created with VSCode. The error I get in both is ...
0
votes
0
answers
26
views
sap.uxap.ObjectPageLayout jumping buttons due to scrollbar
Example:
https://plnkr.co/edit/213BfJ4Q0shqBqaK
If there is no scollbar at the 2nd section for you, you might have a bigger screen than me and need to add a few more buttons.
If you set the ...
0
votes
0
answers
20
views
Opa5 test cases not running in pipeline - Karma runner UI5 config
We are trying to run opa5 test case in our pipeline using Karma runner with UI5 config but it doesn't work. Here we checked all the test case and they are running fine when we run them in parts or if ...
0
votes
0
answers
24
views
Sap Fiori launchpad 403 Forbidden metadata
I get a "403 forbidden" error (metadata of the application) after deploying the app on our new system. The Launchpad and also the Launchpad Customizer works, but as I open the application it ...
0
votes
0
answers
22
views
Disable completed step in Wizard control in SAP UI5
I would like to restrict user not to click on completed step on wizard control as i am using back and continue buttons to navigate to next step or previous step.
0
votes
0
answers
49
views
Is it possible to use the same search field to filter multiple tables? SAP Ui5
My fiori application has multiple tables, each with its' own search bar, in separate nested views. Is it possible to filter all tables using the same search bar? The code below works for filtering the ...
0
votes
0
answers
19
views
sapui5 Gantt chart table view remove scrollbar
My Gantt chart table view renders a weird horizontal scrollbar under the vertical scrollbar. I want to remove it because it looks weird. Does anybody have any advice ?
See the little gray dot in under ...
1
vote
1
answer
66
views
How can I get the count of filtered OData results? [duplicate]
I am attempting to get the count of filtered OData results in a Fiori SAPUI5 application. I am able to get the correct count using both $count and $inlinecount in Postman using the following:
...
-3
votes
0
answers
25
views
Automation test written on Java+selenium, fails on Azure Devops pipeline but runs successfully on locally
Automation test written on Java+selenium, fails on Azure Devops pipeline but runs successfully on locally
-4
votes
0
answers
86
views
App could not be opened because the SAP UI5 component of the application could not be loaded
Some users in production facing issues like 'App could not be opened because the SAP UI5 component of the application could not be loaded but after 5 to 10 mins those applications are working fine.
...
1
vote
1
answer
70
views
what is the meaning of version field in manifest.json file in UI5?
What are the benefits or impacts if we upgrade the manifest.json file's version in UI5.?
In manifest.json file currently "_version": "1.1.0" is maintained.
What will be the pros ...
-1
votes
0
answers
47
views
How to dynamically set or constrain ScrollContainer?
I have a sap.m.Table inside a ScrollContainer. Depending on the available space of the screen I want the ScrollContainer to reach its max height.
What is the best way to do this?
0
votes
1
answer
32
views
Github action: Stuck on "Start deployment (Y/n)?" - SAPUI5
We are trying to deploy a SAPUI5 application via github actions. Right now we call the deploy command via npm run deploy in the github action. The step wont proceed since it is asking the user to ...
0
votes
1
answer
36
views
sap.m.Switch - Change event not getting triggered
i'm just starting with UI5 and i'm currently stuck with an issue using sap.m.Switch with UI5 Version 1.71.33.
Basically what i want to achieve is, when the state of the switch changes, another field ...
0
votes
0
answers
8
views
UIVERI5 actions not waiting each other
I have the following test:
it('Set month work schedule', function () {
Given.iLoadPage();
Given.iGoToCurrentWeek();
Given.iGoToToday();
When.onTheCalendarPage.iClearSelections();
...
-1
votes
0
answers
28
views
Restful abap : As less as code possible, annotation for editable fields comming from conversion-table ( codeless question till now )
Our company is now more and more introducing fiori, sapui5, cds, and restful abap programming with annotations for the usage in fiori-elements.
What we do already have, is an very old sap gui ...
0
votes
0
answers
39
views
Sap.m.Table delete button column text
my question is simple. Is there an option where I can put a headerText in the delete column?
0
votes
1
answer
27
views
QUnit - Testing functions of files besides formatter.js
The example given by UI5 of testing the formatter functions i.e.
// Assert
assert.strictEqual(fnIsolatedFormatter("A"), "New", "The long text for status A is correct");
...
0
votes
1
answer
49
views
Smart Table event beforeRebindTable calling only when view loads in SAP UI5
I am facing issue with the smart table event beforeRebindTable here iam having a smart table in view2 based on some selection on view1 we need to navigate to view2 and bind data to the smart table ...
-1
votes
1
answer
59
views
Understanding extend and method overwriting
This is a follow-up question from the previous: Why is the parent prototype method still executable after overriding?.
As we see, the literal object {metadata, aaa, init} was initialized by the extend ...
0
votes
3
answers
102
views
How to call a function when any JavaScript event occurs?
I have a requirement to check if the user is active or inactive in UI5. So I need to call a function when there is some kind of user events. I have done it as follows. But is there a better way ...
0
votes
0
answers
33
views
SAPUI5 Tree Table extension
I am using SAPUI5 sap.ui.table.TreeTable (demo) and would like to change the arrow icon indent and table row background colour for each level of the tree.
What I am trying to achieve - each expanded ...
0
votes
0
answers
83
views
Why is the parent prototype method still executable after overriding?
I am new and learning for JavaScript. I am trying to understand the code line UIComponent.prototype.init.apply(this, arguments) based on JavaScript syntax for below code snippet.
I have read the link ...
0
votes
0
answers
26
views
How do I delete nested JSONModel row from a SAPUI5 table using dialog box?
I have a SplitApp application that consists of categories and items under each category whose json structure resembles the one below:
{
"stations":[{
...
0
votes
0
answers
63
views
Handle pagination REST API
I implemented a function calling a REST API. I defined my query, header, parameters.
I wasn't able to manage pagination with loadData() method. How can I achieve my second call to get the page 2 for ...
0
votes
0
answers
41
views
How to make sap.f.GridList scrollable inside a control Panel?
I'm adding some GenericTile based on my model into a sap.f.GridList. This is successful. But my problem is that I don't want to have my whole page to be scrollable but only the GridList. That is the ...
0
votes
0
answers
26
views
How do I hide the Calendar Popover on a SAPUI5 DatePicker?
I'm using a sap.m.DatePicker which instantiates a ResponsivePopover, including a Calendar and two buttons (Today and Next Day) on the navigate event.
<DatePicker
navigate="onNavigate"
>...
2
votes
0
answers
86
views
sap.ushell.Container is undefined in SAPUI5 app deployed on SAP BTP Cloud Foundry
I am facing an issue in calling sap.ushell.Container.getServiceAsync("CrossApplicationNavigation") from a SAPUI5 application deployed in BTP Cloud Foundry and accessed through SAP BTP ...
0
votes
1
answer
36
views
How to trigger image download in sapui5?
I am currently trying to download a PNG file from my Sapui5 application. I have tried several ways, but all of them only displayed the image in a new or the same tab. The download was never triggered.
...
0
votes
0
answers
41
views
validate if user has permission to access the webapp using SAPUI5
can someone please help me to code the logic for this, especially a logic for return "boolean that user is authorized". And if ever I did some mistakes here feel free to correct me. Thank ...
0
votes
0
answers
20
views
sap ui5 force selection is not working with true false condition
forceSelection="{= ${item>/type} !== 'DataPlane' ? false : true }". this makes force selection false when it is dataplane but it does not make it false when no dataplane(or the condition ...
0
votes
0
answers
37
views
Single planning calendar with fullday off
I have a problem with Single planning calendar.
I set fullday to false and set a startHour (8h) and endHour (17h).
But when i want to resize an appointment the startDate is not correct.
...
0
votes
0
answers
29
views
Set Batch off just for a group of requests
i have a question is there a way to set for consecutive request the batchmodus off? i can set it on the modelbase but than it is deactivated overall -> thats not what i want, just for these example ...
0
votes
1
answer
80
views
Adding link to an image in sapui5
Showing the error when I am trying to add a link to an image: Cannot add direct child without default aggregation defined for control sap.m.Link in Sapui5
<Link href="http://www.sap.com"&...
0
votes
1
answer
82
views
How to use 3rd party JS library with SAPUI5
Hello Im trying to use the PapaParse library to read content from a csv file into an array. Im not sure how to use the library in my controller. I added the papaparse.min.js folder in my project and ...
-2
votes
1
answer
70
views
where the keyword "this" refer to in sapui5 [duplicate]
I read below codes and try to understand keyword this refer to which object.
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/MessageToast",
"sap/ui/model/json/...
1
vote
1
answer
55
views
Is the empty result message of a ValueHelpDialog customizable somehow?
I have to customize the empty result message of a search result of a ValueHelpDialog. Is this possible somehow?
0
votes
0
answers
33
views
SAPUI5 - Timeline growing button is running the select function each time it’s clicked
I’m facing an issue with the default growing button in Timeline element. I have a select function attached to timeline and each timeline item can be clicked with the help of the select function.
...
0
votes
0
answers
14
views
IOS overriding the select controls expand
I am running the app in Fiori client in Ipad, I have a form where I have select controls, when I tap on the label, the native select pops up, even if I select from the native popup, it does not update ...
0
votes
0
answers
51
views
OpenUI5, oData v4: How to use server-side pagination via $skiptoken
In the release notes of OpenUI5 it says that since 1.72 server side pagination is supported.
https://openui5.hana.ondemand.com/1.72.1/#/topic/25e532617b7f4b9bad842757324151ed.html
But I can't see any ...