How to build, deploy and test a SAPUI5/Fiori application on HANA XS in less than 10 minutes -


there lot of information sap ui5 , sap fiori. what's difference, what's needed build them?

sap fiori design guide building web-based app easy use, responsive, delightful, etc.
technology sap fiori based on sap ui5.
start information sap fiori guidelines open-sap courses.

to build sap ui5 application , deploy on hana xs application server:

prerequisites

build simple sap ui5 application , deploy on sap hana xs server:

  • in eclipse
  • project explorer -> context menu -> new -> project... -> sapui5 application development -> application project -> next -> <enter project name> -> next -> <enter name> -> finish
  • share projrect: right click on project -> team -> share project -> sap hana repository -> next -> choose desired repository, choose parent package via browse button
  • add .xsaccess content: { "exposed" : true, "authentication" : { "method" : "form"}, "prevent_xsrf" : true } , .xsapp (empty file) webcontent folder
  • change within index.html <script src="resources/sap-ui-core.js" <script src="/sap/ui5/1/resources/sap-ui-core.js"
  • activate changes: right click on project -> team -> activate all..
  • open url in browser http://sap-hana-xs-url:80<instance_number>/your/parent/packages/project/webcontent/index.html (example: http://hana:8000/tests/app01/webcontent/index.html) aware url case sensitive.

troubleshooting:

  • if error 404 either url path wrong or might have forgotten create , activate .xsapp, xsaccess files
  • if page empty might have forgotten change library path within index.html file.

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -