cancel
Showing results for 
Search instead for 
Did you mean: 

Backend Programming SAPUI5 with HANA cloud CDS App

12-28-2023 3:49 PM
msiblyb Explorer
1167 views 4 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

I'm new to SAP BTP.
I have developed a HANA CDS cloud Application and connected a Fiori app with the CDS App. I must add some data from the SAP UI5 Fiori app to the HANA cloud. How to do a backend program for the Fiori app.

My project structure is as follows:
--CDS-My-APP >
---------------------app >
-----------------------------frontEndApp >
------------------------------------------------webapp >
-------------------------------------------------------------controller >
----------------------------------------------------------------------------view1.controller.js
-------------------------------------------------------------view >

----------------------------------------------------------------------view1.view.xml
--------------------db >
----------------------------csv>
----------------------------------userDb.csv
----------------------------------employDb.csv
----------------------------cap-module.cds
---------------------srv >
----------------------------cap-service.cds
----------------------------cap-service.js

how to do?
I have a form in view1.view.xml file.
Do it from the backend.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

junwu
SAP Champion
SAP Champion
0 Likes

if you are using cap, normal crud is already done, you just have to call it from frontend.

msiblyb
Explorer
0 Likes

Yeah, I have made it from the frontend. i.e. from controller.js. But I have to do it from the backend. How can I make it possible?
would you share any references or projects?

junwu
SAP Champion
SAP Champion
0 Likes

you mean you want to load some test data to the table?

msiblyb
Explorer
0 Likes

no test data, need to add actual data to the entities from the SAPUI5 form. i.e. Process the data from in the SAPUI5, but add it only from the node.js file in the CDS app.
Also add some data like, uploaded an Excel file, I processed the Excel data in the SAPUI5. So, I have the Excel data. But I have to add the Excel data to the entity from the node.js file in the cds project.

Answers (0)