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
User | Count |
---|---|
60 | |
10 | |
10 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.