Skip to Content
0

UI5 Theme designer. Why do we need to specify client # in theme URL. and How to deal with it.

Jan 17, 2017 at 07:18 PM

74

avatar image
Former Member

Hi,

Recently I have created a custom theme by copying sap_bluecrystal to custom_crystal.

But when I tried to refer this new theme in my UI5 application, I was suggested ( docs/blogs) to specify the client number in reference service of custom theme.

Questions:-

1. We have several clients in different environments like sandbox ( 900-development, 930-unittest ), quality -700 and production - 800. How do I migrate custom theme to different client numbers.

2. How to refer to client number dynamically in bootstrapping.

Appreciate any guidance or reference to documents.

thanks,

Srini.

bootstrap.jpg (16.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Uwe Klinger
Jan 20, 2017 at 11:13 AM
0

Hi,

Custom themes are client specific. Because they are loaded via a public handler they cannot be taken from your authentication data in a reliable way and therefore the client needs to be specified as you outlined in your question.

If you use the same client for your app and for the theme I would suggest to dynamically set the themeroot with the SAPUI5 API (you should find it in the SAPUI5 documentation quickly) depending on your current client.

Best regards,

Uwe

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Uwe,

I am little new to UI5. more questions..

"dynamically set the themeroot with SAPUI5" :- Actually in our case theme is going to be same irrespective of client. But according to what you mentioned that it is a technical requirement to pass client, how do I capture login client and pass it to bootstrap config.

Thanks,

Srini.

0