7,010 questions
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
1k
views
ButtonClick in a dialog box created using a fragment is not getting triggered in the Controller File
I am working on my first Fiori app by following Excel Upload using RAP: Part -3 | SAP Blogs.
Since the blog is a bit old now I have had to edit a few things from the blog to make it work.
Now, I am ...
2
votes
2
answers
221
views
how to show information about the object when I select it from a list in SAPUI5?
I would like to ensure that when I select an element in my list all the details are shown to me, I wrote a function but I'm probably doing something wrong and since I'm new to SAPUi5 I would like to ...
1
vote
1
answer
112
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
269
views
Binding to parent in relative aggregation binding
I have my view bound like this to an oData model:
this.getView().bindElement({
path: 'Entity(ID='1234')',
model: 'odataModel',
...
});
The data would look like this:
{
"ID": &...
0
votes
1
answer
1k
views
OData V4 Easy way to update Model?
I am creating a To-Do List App in SAPUI5 and have connected my OData V4 Model from a CAP Project.
The issue I have is that I cannot update my Object status to "done" when it is selected.
I ...
0
votes
1
answer
3k
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:
...
0
votes
1
answer
1k
views
OpenUI5 PDFViewer throws DOM error on displaying pdf file
I would like to use the sap.m.PDFViewer to display my PDF files which are included to the UI5 project. The file is found and loaded but the viewer displays the default error message and in the console ...
0
votes
0
answers
186
views
Why is 'parts' not working in XML Fragment property binding?
I have an XML fragment which works fine when using
value="{path: 'ReceivedQuantity', formatter: '.formatQuantity'}"
But if I want to send multiple parameters to this formatter function, ...
2
votes
1
answer
2k
views
SAP-RAP-Unmanaged: Confusion about execution of behav's read
I have an unmanaged rap scenario, where the topmost root entity is covered with a projection, the corresponding behav also has a projection.
The generated implenentation of the behav created empty ...
1
vote
1
answer
176
views
How to avoid own D3 library being overwritten when loading other FLP apps?
I am developing a custom Fiori app (let's call it App1) that uses the thirdparty library D3. I needed the newer version (7.5.0) since the existing sap/ui/thirdparty/d3, that is bundled with OpenUI5, ...
1
vote
1
answer
173
views
Events such as click is not working on UI5 with Karate UI testing
On SAP UI5, after rendering when I try to call any components such as button's using its ID and perform any events like click is not working from Karate.
click("[id='ValidationGroup::LineItem::...
1
vote
0
answers
75
views
OpenUI5 Application Routing Issue: Views Not Loading for Subroutes under Component Usage
I have an OpenUI5 application with the following folder structure:
The two manifest.json files are defined as follows:
Main manifest.json:
{
"_version": "1.48.0",
"...
1
vote
0
answers
70
views
sapui5 xml view event handling leads to disappearing errors
I have a sapui5 app using the version 1.108.20. I used documentation on how to handle events in xml views (https://sapui5.hana.ondemand.com/sdk/#/topic/b0fb4de7364f4bcbb053a99aa645affe) to implement ...
0
votes
1
answer
83
views
QUnit test not working on assert.throws()
Maybe i don't understand the documentation, my test is not working.
I'll test an expected error from a function:
// file_to_test.js
...
myFunctionToTest: function(param1, param2 = "AA-BB") {
...
1
vote
0
answers
214
views
How to merge data from 2+ OData services in an sap.m.Table?
I have an SAPUI5 table (sap.m.Table). The items are from the OData v 4 model - they are obtained automatically (/catalog/cars). Each row has a CarID key. There is another OData v 4 service that I can ...
0
votes
1
answer
486
views
DIsplay two PDF Files in SAP UI5 PDFViewer
I want to mdisplay to local PDF files in my sap ui5 application but it is not showing the files.
I tried the following but it does not work.
I cannot make the path work properly
I have the files on my ...
1
vote
1
answer
743
views
SAPUI5 suspend / resume oData binding not triggering
I need to setup oData binding in a view so that, by default the items aggregation of a table (containing products) is 'suspended' until I click a button that 'resumes' the binding and loads in the ...
1
vote
0
answers
448
views
Table Personalization appears not complete, I get only the columns without sort, filter and groups
I try to create Table Personalization the same like in this link , see it please first Table Personalization but I get as you can see in this photo , only columns, there are no sort, no filter, no ...
1
vote
0
answers
2k
views
SAPUI5, RAP, unmanaged and freestyle: Create entity and children with "create by association" - how to call from client code?
I want to create a header with its 2 associations in one go.
My behaviour class exists, the "create" on the root entity is called properly and twerks nicely.
But the passed parameter for ...
0
votes
1
answer
348
views
SAP B1 Service Layer G/L account is not valid
I'm trying to create a new Incoming payment using the service layer but I received this error
G/L account is not valid [PaymentAccounts.AccountCode][line: 1]
My JSON is:
{
"DocType": &...
-1
votes
1
answer
764
views
SAP ODATA URI Query
I wanted to pass multiple parameter as INPUT for ExpandedentitySet. Could anyone help on URI alone ? Tried many combinations but couldn't able to decode.
OData V2
Attempt 1:
/sap/opu/odata/sap/...
0
votes
1
answer
43
views
SAPUI5: Open JSON in new browser window fails
I would like to download JSON from my app to disk. For this purpose I am retrieving the JSON as encoded string from the backend and using this approach:
const uri = `data:text/json,${sJSONContent}`;
...
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....
0
votes
1
answer
232
views
Errorhandler not called after error SAPUI5 callFunction()
I am trying to validate an IBAN inside of a Wizard in SAPUI5. To do this, I use a functionImport on an V2 ODataModel (sap.ui.model.odata.v2.ODataModel).
The request comes back with a 202 status code ...