cancel
Showing results for 
Search instead for 
Did you mean: 

Putting fiori theme to sap ui5 application.

former_member269453
Participant
0 Kudos

Hello,

I would like to ask a question about custom theming.

First of all, i'll explain, what I have done.

Theme Designer:

In Theme Designer, we opened sap_belize theme. We change a default value and saved the them as zcustom_belize. Afterwards used for the theme we changed some colors & we saved & build the custom theme. The app, that we designer is the fiori launchpad.

Now starting the fiori launchpad & fiori apps that are delivered by sap, the theme is loading like its set up in theme designer.

So for standard stuff its working fine.

We've then created a custom fiori application (master/detail template), using a simple oData service & the app works like we want except for the theming part.

we have the behaviour in launchpad, that the shell is applying the custom theme but the custom application is still in the sap_belize theme.

what we also did was downloading the theme using /ui5/theme_tool, adding it in the resource folder of the ui5 project, change the theme parameter data-sap-ui-theme and upload the project using the ui5 upload report. but then no theme is applied at all.

Kindly suggest whats need to be done to make it working.

Thanks.

chandrashekhar.mahajan

robin.vanhethof

Accepted Solutions (0)

Answers (2)

Answers (2)

Sharathmg
Active Contributor
0 Kudos

Ideally, if any theme parameter is applied, it should take up the theme in which Fiori launchpad is assgined.

To run your app with custom theme, you need to provide the custom theme as a parameter by copying the full link in the UI5_Theme_tool.

First, run the app with the custom theme as a parameter and confirm if the theme is getting applied. Once you confirm that link the same in launchpad and test.

Regards,

Sharath

former_member269453
Participant
0 Kudos

Yes Ideally it should happen. But the FLP configurations has been done in such a way that the index.html is the entry point . i guess when i use component.js file to enter thenthe FLP theme will be added automatically. I am assuming thats the reason.

When i go to the theme tool and use the link and send it as url parameter (ui5 Link+theme Link) it works. But still the company logo and the flp title bar doesnt come up.

So i downloaded the theme and then upload it thorught he bsp but still its not getting applied.

Today somehow I have manged to run the theme but the rendering doesn't happen correctly and i get many errors "Could not load theme parameter" .. what is the solution? I cannot change the url now. Do i need to recreate the url in the ui code

Sharathmg
Active Contributor
0 Kudos

Don't download the theme into your project and refer it

It is a temporary solution and not recommended in real time usage. You should refer to the theme on the server.. using the link in theme tool.

Are you using FLP 2.0? Share some screenshots .. if any especially with errors

Regards,

Sharath

former_member484715
Contributor
0 Kudos

Try once by modifying all the values as per your custom theme in the theme designer. As per what I understand, you might have missed to do some modifications when you created your custom theme for the first time. Maybe something you missed is required for the theme to be applied on the launchpad.

former_member269453
Participant
0 Kudos

Hi Arjun,

Thanks for your reply.. Could you please tell me in detail. ? I did download the theme and applied it in eclipse local it works. But while i upload the same set of documents no theme gets used.

former_member484715
Contributor
0 Kudos

You can use this following blog for more details :

https://blogs.sap.com/2013/09/19/create-and-apply-custom-theme-to-sapui5-application/

Could you elaborate as, where upon uploading, the documents, no theme gets displayed

former_member269453
Participant
0 Kudos

Hi Arjun,

I have done all the steps what chandra has mentioned.