cancel
Showing results for 
Search instead for 
Did you mean: 

run node js from UI5 in HANA XSA

rajarshi_muhuri
Active Participant
0 Kudos

normally node programs are run using the "start": "node server.js" which is found in the package.json file .

how can I run a node program on demand that will be triggered from button click of a sapui5 screen

junwu
Active Contributor
0 Kudos

why? what is your scenario?

rajarshi_muhuri
Active Participant
0 Kudos

I have a node program to (based on schedule) run stored procedures , for some application logic and doing multi -table joins /lookups , updates and inserts and finally posting the results to a external API.

we also want the same to be run on demand instead of a schedule . And we this , so user can visit a website and on click of the button execute an almost similar node program

junwu
Active Contributor
0 Kudos

you just call a node js service, why you have to start a nodejs on demand?

rajarshi_muhuri
Active Participant
0 Kudos

I am not that familiar with node js very much , so what do you mean call node service ?

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

your node js server will be started by xsa ("node server.js")

you just have to call the service hosted by that server, you don't have to(should not) trigger "node server.js" from your ui5 app.