Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Problem with SAPUI5 Custom Theme in XS Project

$
0
0

I made a custom theme with designer.hanatrial.ondemand.com, which gave a zip file. I then created a local standalone SAPUI5 application. After unzipping and copying into "WebContent/resources/sap" folder in the application directory, I was able to apply the theme with the following code in index.html:

<script src="/resources/sap-ui-core.js"

  id="sap-ui-bootstrap"

  data-sap-ui-libs="sap.ui.commons"

  data-sap-ui-theme="my_theme">

  </script>

Here my_theme is the name of the customized theme.

 

After that, I shared the SAPUI5 application into an XS project which is shared on the HANA server and made the following modification according to:

8 Easy Steps to Develop an XS application on the SAP HANA Cloud Platform

<script src="/sap/ui5/1/resources/sap-ui-core.js"

  id="sap-ui-bootstrap"

  data-sap-ui-libs="sap.ui.commons"

  data-sap-ui-theme="my_theme">

  </script>

This time the theme does not show up. So my question is: 1. what is the proper way to apply a custom theme on an XS-embedded SAPUI5 project? 2. is there any way I can copy and paste the theme files onto the server's "/Content/sap" folder? Thank you!


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>