cancel
Showing results for 
Search instead for 
Did you mean: 

Navigate from custom webdynpro iview to ESS-iview

Former Member
0 Kudos

Hi All,

The requirement :

To navigate from a custom developed WD-iView to a standard ESS-iView (not the page area)

Example : Navigation is possible from a custom iview to ESS-Working Time iView that contains the link to "Leave Request Screen", but the requirement here is to directly navigate to the Leave Request Screen.

Please advice on how to achieve this functionality.

Any help would be appreciated

Aneesh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Aneesh,

We can navigate from custom developed WD-iView to a standard ESS-iView.

IWDDeployableObject deplObject = WDDeployableObject.getDeployableObject(wdComponentAPI.getDeployableObjectPart().getDeployableObjectName());

WDDeployableObjectPart[] deplObjectPart = deplObject.getParts(WDDeployableObjectPartType.COMPONENT);

IWDConfiguration config = WDConfiguration.getConfigurationByName(deplObjectPart[0],"Snps_CountryCode");

value = config.getStringEntry(countryCode);

} catch (WDUMException wdUMException) {

wdComponentAPI.getMessageManager().reportSuccess(wdUMException.toString());

} catch (WDConfigurationException wdConfigurationException) {

wdComponentAPI.getMessageManager().reportSuccess(wdConfigurationException.toString());

}

WDPortalNavigation.navigateAbsolute(

value,

WDPortalNavigationMode.SHOW_INPLACE,

(String) null,

(String) null,

WDPortalNavigationHistoryMode.NO_DUPLICATIONS,

(String) null,

(String) null,

(String) null);

}

If you couldn't get that code, try this thread, it may help you

Kind Regards,

Raj

Former Member
0 Kudos

Thanks Raj,

Could you pls throw some light on the kind of parameters that you've used

"Snps_CountryCode"

countryCode

and what is the value that gets stored in deplObjectPart[0] ?

Aneesh.

Former Member
0 Kudos

Hi Aneesh,

Those parameters are used for reading key value pairs from *.properties file.

If you want to just navigate to any ESS webdynpro screen from custom developed web dynpro, use the following piece of code.

WDPortalNavigation.navigateAbsolute(

value,

WDPortalNavigationMode.SHOW_INPLACE,

(String) null,

(String) null,

WDPortalNavigationHistoryMode.NO_DUPLICATIONS,

(String) null,

(String) null,

(String) null);

}

value - path of the desired screen.

Remember, this will work only in portal runtime.

Hope this may help you.

Thanks & Regards,

Raj.

Former Member
0 Kudos

Hi Raj,

Thank you for the effort; but as i had mentioned in my query. i can navigate to any Area Page in Portal using Portal Navigation and i have done that.

I am able to navigate to the following page in ESS Menu from a custom WD Appltn:

"pcd:portal_content/com.sap.pct/every_user/com.sap.pct.ess.employee/com.sap.pct.ess.iviews/<u>com.sap.pct.ess.area_working_time</u>"

but my requirement is to navigate to the page: "pcd:portal_content/com.sap.pct/every_user/com.sap.pct.ess.employee/com.sap.pct.ess.iviews/co<u>m.sap.pct.ess.serv_working_time</u>"

as i need to navigate to the leave request screen directly rather than the working time area

on navigating to the above location i am getting an error :-com.sap.portal.appintegrator.sap.WebDynpro::WebDynpro/TopLayer.

Do you have any hints on this

Thanks in advance,

Aneesh