cancel
Showing results for 
Search instead for 
Did you mean: 

navigationservice.getInitialNodes in Web Dynpro Application

former_member188556
Active Contributor
0 Kudos

Hi,

I am trying to develop a Web Dynpro application which will return the NavigationNode of a logged in user.

I created a navigationService object as shown below

INavigationService navigationservice =
		(INavigationService) PortalRuntime.getRuntimeResources().getService(
		         INavigationService.KEY);

I created a HashTable object with

environment.put("User", anIUser.getUniqueName());
environment.put("NavigationPrincipal", anIUser.getUniqueID());

After this, when i try to get the initial nodes,

navigationservice.getInitialNodes(environment)

i am getting the following the error

com.sapportals.portal.navigation.NavigationService.getInitialNodes(NavigationService.java:1726) 
 
 com.sapportals.portal.navigation.NavigationService.getInitialNodes(NavigationService.java:358) 
 
 com.sapportals.portal.navigation.cache.CachedNavigationService.getInitialNodes(CachedNavigationService.java:137)

What would be the problem here?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member188556
Active Contributor
0 Kudos

When putting getSAPUser inside the hashmap, it works.

environment.put("NavigationPrincipal", clientUser.getSAPUser());