cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Currently Assigned Theme of logged user using API?

Former Member
0 Kudos

Hi all,

How to get currently assigned theme for the current user using API.

By using coding i'm getting the current user. Based on the user how to find out the currently assigned theme.

Or Any other way to getting the assigned theme for the user using API.

How to achieve this.

Thanks & Regards

Thillai J

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi All,

sorry.I found out the solution.

By using this code I'm getting the assigned theme of the current user.

ILAFService iLAFService = (ILAFService)PortalRuntime.getRuntimeResources().getService("com.sap.portal.themes.lafservice.laf");

String themeRoot = iLAFService.getThemeRootURLPath(componentRequest, ILAFService.PORTAL_THEME);

String currentTheme = iLAFService.getCurrentTheme(componentRequest).getThemeName();

Thanks & Regards

Thillai J

Former Member
0 Kudos

Hi Thillai J,

Thanks, that was useful. Appreciate your posting the solution before closing the thread.

Regards,

Anagha