Skip to Content
avatar image
Former Member

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 20, 2017 at 11:13 AM

    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

    Add comment
    10|10000 characters needed 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.