Custom Theme for NWBC creating issue in Fiori
Asked Answered
C

1

7

I've created a custom theme for NWBC (just with a different background image) and it turns out that this is connected to Fiori too. The theme was created just like the tutorial on this link: How to create and assign custom theme to NWBC.

When I try to run Fiori, I get the following error:

404 (Not found)

at this HTTP request: GET http://<machine_name>/sap/public/bc/themes/~client-200/~cac…p1hMouOcijKd4xZRPUAZhLJ3E/UI5/sap/m/themes/zsap_goldreflection/library.css

The name of my new custom theme is zsap_goldreflection and, as it appears, the file library.css (and also library-parameters.json) is not being found.

Any idea why?

Thank you.

Regards, Eva

Chokedamp answered 17/6, 2014 at 18:16 Comment(0)
A
0

Custom themes support various clients and frameworks (depending on which SAP theme they are based on). Your custom theme seems to be based on SAP Gold Reflection: (zsap_goldreflection/library.css).

However, custom themes based on SAP Gold Reflection are not supported by SAPUI5 mobile libraries, which is why there is no css file and the request fails.

One possible solution would be to try to use SAP Blue Crystal as a basis for your custom theme since it supports SAP Fiori (if this is your main use case). For an overview, please see the following link: SAP Standard Themes.

Accuracy answered 24/6, 2016 at 12:9 Comment(1)
SAP Blue crystal is also a very old theme and depending on your SAPUI5 version (which is based on component SAP_UI version) you should consider using another theme. Best place to check this is in the SAPUI SDK page Supported Combinations of Themes and LibrariesCrabby

© 2022 - 2024 — McMap. All rights reserved.