88 questions
0
votes
1
answer
91
views
How to use `@azure/msal-browser` in SAP UI5 application with `ui5-tooling-modules`?
I am trying to integrate Microsoft Entra ID authentication in an SAP UI5 application using the @azure/msal-browser library. However, I am facing an issue where the module cannot be resolved when ...
-1
votes
1
answer
94
views
How to configure @ui5/middleware-code-coverage when application runs in iframe?
I try to use the ui5 tooling extension @ui5/middleware-code-coverage to display coverage information for an application running in iframe (sap.ui.test.Opa5.iStartMyAppInAFrame)
According to the ...
0
votes
1
answer
87
views
Change output folder for ui5-tooling
Is there a way to change the default output folder (dist) for ui5-tooling?
I cannot find a way to specify it in the documentation https://sap.github.io/ui5-tooling/v3/pages/Configuration/
0
votes
1
answer
64
views
Loading a component's file in test context of a different component
I have a SAPUI5 app with 5 components in total: 4 components and 1 shared component which contains the shared files.All of them are under the root folder.
The first component's code uses a file from ...
1
vote
1
answer
182
views
Linking multiple local projects via UI5 Tooling workspace fails
My VS Code workspace looks something like this:
SAPUI5
-zkdklsel (Component. Neither an application nor a library)
-zkdtagesdok (Application)
In the zkdtagesdok app descriptor, I defined the usage ...
0
votes
1
answer
1k
views
fiori-tools-proxy how to replace path with another taget
I'm trying to use the fiori-tools-proxy to proxy every request that starts with a certain string and I want to replace that starting string with another one.
I'll try to write down an example:
every ...
2
votes
1
answer
946
views
Why changing just the `sap.app/id` in the manifest.json causes app to crash?
I have a SAP CAP Full Stack app. I also have some custom UI5 code - XML Views and JS controllers.
Everything is working fine, but if I just change the sap.app/id section in the manifest.json file (...
2
votes
0
answers
242
views
Why are the sap-icons broken when I use a custom theme?
I have a OpenUI5 project where I want to add a custom theme.
The theme is coming from a npm package, so I included it in package.json like this:
"dependencies": {
"webui-theme-...
1
vote
1
answer
413
views
How to reduce the number of files in the UI5 build output?
I have an OpenUI5 project that I build using the ui5-cli with the following command:
ui5 build self-contained --clean-dest --all
However, the build output includes the resources folder with many ...
0
votes
1
answer
1k
views
Yeoman throwed error SAP UI5 Application Generator on vscode
I get the error message that creating the Fiori App which source Odata.
{"message":"@sap/fiori:app generator failed - env.on(error) Cannot read properties of undefined (reading 'version'...
1
vote
1
answer
2k
views
`Uncaught ReferenceError: sap is not defined` after self-contained build with UI5 Tooling
I have already built an application using SAPUI5 1.108. When launch the application locally (npm run start), everything works as expected.
However, I didn't notice that the system where the ...
0
votes
1
answer
432
views
SAP UI5/FioriElements: this.getview is not a function
Although many questions exist on the same topic, I could not resolve this using the given solutions.
Code
[Snippet from the manifest.json to trigger the same]((https://i.sstatic.net/Sb7g6.png)
File ...
1
vote
1
answer
120
views
How to build a multi component application?
I have an OpenUI5 project with the structure depicted below. It contains one RootComponent that displays two other separate Components (UserComponent and AdminComponent).
my-app/
├─ node_modules/
├─ ...
0
votes
1
answer
4k
views
Error updating SAPUI5 version using UI5 Tooling
I have a pretty standard ui5.yaml setup as follows..
specVersion: "2.3"
metadata:
name: itcpc.cms
type: application
framework:
name: SAPUI5
version: "1.84.26"
libraries:
...
1
vote
2
answers
2k
views
Not able to use OData V2 (Northwind) data in SAPUI5 App
I am trying to use Northwind data service (OData V2) in my SAPUI5 app. However, I am not able to get any data at all from the server.
This is my XML view:
<mvc:View controllerName="c.g....