on 2007 Nov 28 7:10 AM
Hi experts,
How can i pass a parameter from an iView created from .par to a webdynpro iView ?
Regards,
Shabeer.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Thanks Omri!!
Wow!! That was cool!! I did not know that it is this simple. I have awarded full points.
Regards,
Shabeer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.