cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining the current role in a WD application

Former Member
0 Kudos

Hi All,

Please let me know a way to find out the current portal role from a web dynpro application. The scenario is like this, lets say I'm having a sample web dynpro application TestApp. Now this application is available under four portal roles Role A, Role B, Role C and Role D. Now whenever the application is being accessed through one of these four roles, I have to fetch the role and show the respective data. I hope this would give you a clear picture of the issue. Looking for some quick response.

Thanks in advance,

Ganpati Jha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

We can use the following API to get the current role:

IWDNavigationHelperService wdNavHelperService =

(IWDNavigationHelperService) WDPortalUtils.getService(IWDNavigationHelperService.KEY);

String navNode = wdNavHelperService.getCurrentNavNode();

Regards,

Ganpati