on 08-27-2008 2:25 PM
Hi,
How to call a Visual Composer Application(iView) from WebDynpro on a Button click.
And I have to pass some parameters to VC application. I tried using
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content/Project/com.sap.SomePage",
WDPortalNavigationMode.SHOW_INPLACE,
(String) null,
(String) null,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
(String) null,
(String) null,
"param1=value1,param2=value2 "
);
Don't know how to get those parameters (param1, param2) in VC application.
Thanks,
Joe
Are they on the same page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raj,
For Portal Eventing (WDPortalEventing raise / subscribe ) both iviews has to be in same page. Not for the portal navigation - method WDPortalNavigation.navigateAbsolute(....).
Here in this method you will be calling page / iview with parameters with pcd path.
http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/content.htm
Joe,
I Can answer your first question. You are not passing parameters correctly. To send multiple parameters we need to use '&' .
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content/Project/com.sap.SomePage";,
WDPortalNavigationMode.SHOW_INPLACE,
"MyWindowFeatures",
"MyWindowName",
WDPortalNavigationHistoryMode.Allow_Duplications,
"MyTargetTitle",
"MyContextURL",
"parameter1=value¶meter2=value2");
I will let you know, how to access parameters in VC soon.
Thanks,
Sridhar
Sridhar,
Yes, thats correct("parameter1=value¶meter2=value2"). Its just a typo mistake in the question.
My actual question is how can we read these parameters in VC. As WebDynpro will pass parameters as DynamicParameter.
Below is the Documentation:
"
The value of businessParameters is passed as a URL parameter called DynamicParameter.
Web Dynpro applications automatically parse this URL parameter, and make the key-value pairs available as separate URL parameters. Non-Web Dynpro applications must retrieve the DynamicParameter parameter and parse it themselves. "
http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
How to parse this DynamicParameter in VC. Please Let me know whether it is possible or not.
Thanks
Joe
Hi Joe,
I solved it by adding the encoded parameter string
&_paramsXmlStr_=<Params><Row BANK_CTRY="US" MAX_ROW="10"></Row></Params>
to iView URL in the WDPortalNavigation.navigateAbsolute. Find the code below.
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content/myFolder/myiViews/myVCiView?&_paramsXmlStr_=<Params><Row BANK_CTRY="US" MAX_ROW="10"></Row></Params>",
WDPortalNavigationMode.SHOW_INPLACE,
(String) null,
(String) null,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
(String) null,
(String) null,
" "
);
I did not pass the parameters as Business parameters(WebDynpro will change these Business parameters as DynamicParameter).
Thanks
Sreekanth
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
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.