cancel
Showing results for 
Search instead for 
Did you mean: 

How to navigate between different Iviews using urlparameters

Former Member
0 Kudos

Hi everyone,

My requirement is, I have an application, which have 3 iView, for example IViews A,B,C.

iview A calls B, B calls C,. Here iview B,C have a back button, so when back button on iview B is pressed it should go back to iview A, same thing with iview C;

I am using 2004's, in 2004's using cookies is discouraged,

next option I am thinking about is passing URL parameters,

anyone can guide me how to use url parameters for request and response.

Regards

Sriram

Accepted Solutions (0)

Answers (2)

Answers (2)

sridhar_k2
Active Contributor
0 Kudos

Hi Sriram,

On clicking on back button, if you want to move to previous iView, use outbound plugs to achieve this.

You can use below code to get Request Object.

Add 'servlet.jar' to WebDynpro libraries.

HttpServletRequest request =((IWebContextAdapter)

WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();

Enumeration enum = request.getHeaderNames();

Regards,

Sridhar

Former Member
0 Kudos

Hi

Sridhar in 2004s WDWebContextAdapter is not supported instead of that we use WdProtocalAdapter but I am worried about sending side, how to send navigation level, mode, to next iview

Regards

Sriram

Former Member
0 Kudos

Hello Sriram,

I am assuming that each iview is based on a Dynpro view.

First, create separate application for each iView, you can achieve this by creating a separate Window interface for each one. Once you have that you can navigate between them using this code which relies on the WDPortalNavigation Object:


WDPortalNavigation.navigateAbsolute(
"ROLES:"+iview,
WDPortalNavigationMode.SHOW_INPLACE,
(String) null, 
(String) null,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
(String) null,
(String) null,
"Param=Paramvalue");

Where:

"ROLES:"+iview=Iview Path

"Param=Paramvalue"=Parameter and its value

You can receive the value at the other side using:

String parmvalue=WDWebContextAdapter.
getWebContextAdapter().getRequestParameter("Param");

Hope it helps,

Roy

Former Member
0 Kudos

Hi

Roy Thanx for your reply, but my scenario is like

when user clicks on navigate button on first IView it will take you to next IView. On next IView it should show navigation levels and navigation mode. I thought about absoluteNavigation but it wont work in my scenario I guess, Please give me your suggestions.

Regards

Sriram