I just pushed a little showcase application to github which demonstrates the use of a SAPUI5 frontend application with a Grails backend system. The reasons I wrote this frontend in the RDE are:
So I decided to put the frontend part of the application into a GITHUB repository. I then cloned this in the RDE that comes as beta version with HCP trial edition. After that I could develop my frontend application in the RDE and push my changes into this repository.
To connect this frontend to my Grails backend application and to overcome the SOP (same origin policy) problem I had to expose the latter via the SAP Cloud connector to my HCP account.
With this I could create a destination in the HCP cockpit
After the destination was available I had to refer to it in the file neo-app.json of my SAPUI5 application.
Now I could simple call my api functions from the SAPUI5 application as if they were running at the same host.
oModel.loadData("api/logout", undefined, true, "POST", false, false, header );
If you are interested in the REST authentication stuff please look into the sourcecode at GITHUB and the readme file over there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
37 | |
10 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
2 | |
2 |