cancel
Showing results for 
Search instead for 
Did you mean: 

ESS Custom DC with Exit Button

Former Member
0 Kudos

Hello All,

I have created our own DC for ESS Personal Data Application ( We dont want to use sap delivered DC for personal data). DC created is fine and its working.

Now i wanted to Add Exit button in my DC and when i click that it should goto Personal Information Sub Area.

Now i did the following:

Added Used DC pcui_gp/xssfpm and pcui_gp/xssutils.

Implemented IVAC to my Webdynpro Component.

Added this code in Init method:

this.fpm = fpm;

//fpm.attachComponentToUsage(wdThis.wdGetAPI().getComponent(), wdThis.wdGetFcNavigationComponentUsage());

fpm.attachComponentToUsage(wdThis.wdGetAPI().getComponent(), wdThis.wdGetFcNavigationComponentUsage());

fpm.registerContext(wdContext);

Added this code in Exit Method:

fpm.navigate(wdThis.wdGetFcNavigationInterface().getNavigationTargetExitApplication());

The following properties are added into the application:

sap.xss.configurationComponentName - com.sap.pcuigp.xssutils.ccpcd.CcXssPcd

sap.xss.configurationComponentDC - sap.com/pcui_gp~xssutils

com.sap.tc.webdynpro.portal.oal.iViewListProviderDCName - sap.com/pcui_gp~xssutils

com.sap.tc.webdynpro.portal.oal.iViewListProviderImpl - com.sap.pcuigp.xssutils.java.XssIViewListProviderImpl

In my DC i dont have any CC (configuration component).

Basically i dont want any road map for my application. I just need Exit button and it should go to sub area page.

But my application is not working and i am getting the following Exception:

java.lang.NullPointerException

at com.sap.xss.config.FPMRepository$RepositoryKey.hashCode(FPMRepository.java:46)

at java.util.HashMap.hash(HashMap.java:261)

at java.util.HashMap.get(HashMap.java:317)

at com.sap.xss.config.FPMRepository.retrieveObjectInternal(FPMRepository.java:79)

at com.sap.xss.config.FPMRepository.retrieveObject(FPMRepository.java:66)

Any input on this is highly appreciated.

Thanks in Advance.

REgards

Vj

Accepted Solutions (1)

Accepted Solutions (1)

sanyev
Active Participant
0 Kudos

Hi Vijay,

On click of Exit button why don't you use WDPortalNaviagtion api's to navigate to go to personal information sub area. You can use the following api in the action handler of you Exit button.

WDPortalNavigation.
navigateAbsolute("path to iview",
                 WDPortalNavigationMode.SHOW_INPLACE, 
                 WDPortalNavigationHistoryMode.NO_HISTORY,
                 "input parameters");

eg

WDPortalNavigation.
navigateAbsolute("ROLES://portal_content/com.aq.test.sv.WPM_SV/com.pg.test.aq923.Iview_ZCALL_TRANS",
                 WDPortalNavigationMode.SHOW_INPLACE , 
                 WDPortalNavigationHistoryMode.NO_HISTORY,
                 "P_INPUT=XYZ");

Regards,

Sanyev

Former Member
0 Kudos

Thank you Sanyev!! That resolved my problem.

I have rewarded points.

Regards

Vijay

Answers (0)