cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SAPUI5 Custom Theme in XS Project

Former Member
0 Kudos

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:


<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!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Wei,

I am facing the same issue .Did you get a solution for this ?Where is the folder to place the custom themes?Kindly suggest if you already got this solved.

Thanks and Regards

Neeta