Show TOC Start of Content Area

Background documentation Navigation Helper Service  Locate the document in its SAP Library structure

The methods of the navigation helper server wrap the basic methods of the navigation service, in order to provide commonly needed functionality.

For example, while you could find the parent of the current node by using the navigation service’s INavigationNamingHandler interface, it is easier to use the navigation helper service’s getParent() method.

Obtaining the Service

There are two versions of the helper service, both PRT services:

     INavigationHelperService: To be called by portal (PRT) applications. Each method takes the IPortalComponentRequest object as a parameter.

     IWDNavigationHelperService: To be called by Web Dynpro applications. Provides the same methods as INavigationHelperService, but the methods in this service do not require a request object.

Portal Application

The following code shows how to obtain the navigation helper service in a portal application:

INavigationHelperService navHelperService = (INavigationHelperService)
    PortalRuntime.getRuntimeResources()
        .getService(INavigationHelperService.KEY);

Web Dynpro

The following code shows how to obtain the navigation helper service in a Web Dynpro application:

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

 

 

 

 

End of Content Area