cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameter between different iViews

Former Member
0 Kudos

Hi experts,

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

Regards,

Shabeer.

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Omri!!

Wow!! That was cool!! I did not know that it is this simple. I have awarded full points.

Regards,

Shabeer.

former_member182374
Active Contributor
0 Kudos

Hi,

You have several options:

1) Save the parameter in the http session in the PAR file and get it in the Web Dynpro.

2) If the PAR and the Web Dynpro are on the same page you can use Portal Eventing.

3) If the PAR calls the Web Dynpro you can pass it in the URL.

Can you describe your exact scenario?

Regards,

Omri