cancel
Showing results for 
Search instead for 
Did you mean: 

Apply Theme Designer Theme for Just 1 App on FLP

former_member679019
Participant
0 Kudos

In reading this article - https://sapui5.hana.ondemand.com/sdk/#/topic/e9fc648661d84ed89360bbec3ae02611

I am unsure of where to place the code inside the HTML tags.

This is what I have so far:

ComponentJS:

sap.ui.getCore().applyTheme("custom_quartzlight","https://s41ixp00.na.ko.com:4300/sap/public/bc/themes/~client-030/~cache-JTc-nmcrjVzUL3RELn-gcIiyU5g");

The id of the theme is custom_quartzlight from Theme Designer. The address I've retrieved using /UI5/THEME_TOOL. There were 2 URL addresses:

sap-cssurl=https://s41ixp00.na.ko.com:4300/sap/public/bc/themes/~client-030/~cache-JTc-nmcrjVzUL3RELn-gcIiyU5g/~legacy/sap_tradeshow/ur/ur_ie6.css
sap-theme=custom_quartzlight@https://s41ixp00.na.ko.com:4300/sap/public/bc/themes/~client-030/~cache-JTc-nmcrjVzUL3RELn-gcIiyU5g

I assume I use the address that does not end with .css

And what results is an applied blank theme when I run on FLP sandbox:

There is no applied theme in above screenshot...could someone please help!

View Entire Topic
former_member186852
Contributor
0 Kudos

Hi,

Mentioned the custom theme in the SAPUI5 bootstrap script tag.

<scriptid="sap-ui-bootstrap"type="text/javascript"src="resources/sap-ui-core.js"data-sap-ui-theme-roots='{"my_theme" : "http://myserver.com/sap/myapp/?sap-ui-theme=my-theme@/sap/public/bc/themes/~client-111"}'></script>

Regards,

Meghal Shah

former_member679019
Participant
0 Kudos

But thing is, index.html will not be a part of the app when on FLP. So where would I place that HTML tag then if not in index.html?

former_member679019
Participant
0 Kudos

Hello? Are you there?