cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameter between different iViews

Former Member
0 Kudos
58

Hi experts,

How can i pass a parameter from an iView created from .par to a webdynpro iView ?

Regards,

Shabeer.

View Entire Topic
Former Member
0 Kudos

Oops Omri... i made a mistake. I want this to happen the other way round.

I want to pass parameter from webdynpro iView to iview created from par file.

My scenario is simple. I have a webdynpro application with an input field. When i enter something in the input field and click a button, i want to pass this value to a portal component iview (iView created from AbstractPortalComponent). I just want to display the value in the doContent() like this .. response.write(parameter);

can u please help me?

xxxxxx (please read forum rules)

Regards

Shabeer.

Edited by: Armin Reichert on Jan 17, 2008 10:24 AM

former_member182374
Active Contributor
0 Kudos

OK, so it should be like that:

Web Dynpro:

	WDPortalNavigation.navigateAbsolute(
			 "ROLES://portal_content/com.test.Development/com.OmriDevelopment/ReadCookies?name=Omri",
			 WDPortalNavigationMode.SHOW_INPLACE,
			 null,
			 "MyWindowName",
			 WDPortalNavigationHistoryMode.NO_HISTORY,
			 "MyTargetTitle",
			 "MyContextURL",
			 null);

PAR:


       	IPortalComponentRequest req = (IPortalComponentRequest) this.getRequest();
	IPortalComponentResponse res = (IPortalComponentResponse) this.getResponse();
		
	String name = req.getParameter("name");
	res.write(name + "<BR>");

Result is "Omri"

Regards,

Omri