Personal Insights
SCP Trial Account – MTA project (Exposing) NodeJS module xsodata via destination and consume within HTML5 module via destinations.
Background:
MTA project (SAPUI5) unable to consume xsodata service when you have set both xs-app.json and mta.yaml
As an alternative, we can consume the same xsodata via destination through ajax call.
Project Structure:
MTA.yaml (NodeJS module)
MTA.yaml (SAPUI5 module)
XS-APP.json
- Created HDB Module, generated a calculation view
- Created NodeJS Module, wrapped the above calculation view with a xsodata;
- URI NodeJs created is: https://95ijzrwh2ndscfqy-mymta-mymtajs.cfapps.eu10.hana.ondemand.com/service/myeuro.xsodata/
- Its ok when you have the status code 406
- Created a HTML Module (SAPUI5 Application) project template
- Add destinations in neo-app.json
- Create Destination
- URL: https://95ijzrwh2ndscfqy-mymta-mymtajs.cfapps.eu10.hana.ondemand.com/service/
- WEBIDE Usage: odata_gen, odata_hcp_odp
- SAPUI5 ajax or oData call
CONCLUSIONS:
Please find the development detail from the below github.
https://github.com/ramonlee/mymta
If successful, you should see the expected service out illustrated below.
Be the first to leave a comment
You must be Logged on to comment or reply to a post.