Skip to Content
0

Can I test a SAPUI5 application on PHP Web Server?

Mar 24, 2017 at 04:52 AM

142

avatar image
Former Member

Hi,

I have developed a SAPUI5 web application in Eclipse and I was successfully test it on locally ,that is on both the embedded jetty server and a JAVA web server(eg. Apache Tomcat).

I have developed it for productive use and now I want to deploy it to a PHP web server.

I used the simple proxy configuration in my application to acces the OData services from the ABAP system. since I cannot use this for productive use how can I run the application successfully If I use a PHP web server?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

A K Mar 24, 2017 at 06:10 AM
0

Yes, you can run SAPUI5 apps on top of any platform. It is a platform independent application.

But for the best practice purpose, I recommend you to use ABAP or HANA system.

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Karthik,

Thanks for your reply.
I tried to run my application on a PHP web server, application run successfully but I have some OData calls from my application to the ABAP system, maybe because of the CORS issue it is not working.
How can I overcome this if I want to use this application in production??

0

Fine, even odata calls you can use ODATA class from SAPUI5 library.

Can you share the screenshot of CORS (cross domine) issue, Please?

0
Former Member

Hi Karthik,

Can I do something on the Odata creation gateway side to avoid this issue?

capturenew.png (37.9 kB)
0

yes, you should do... use below code under header section of ODATA call.

Access-Control-Allow-Origin : '*'

https://openui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.odata.ODataModel.html
{map}mParameters.headers?a map of custom headers like {"myHeader":"myHeaderValue",...},
0
Dhrubajyoti Rakshit Mar 29, 2017 at 03:46 PM
0

Steps:

1. Upload the files to your server.
2. In Index.html point to the CDN resource library (Available from internet) or download the openui5 libraries and upload the resources folder in your PHP server
3. in index.html, point to the uploaded resources/sap-ui-core.js

Share
10 |10000 characters needed characters left characters exceeded