Skip to Content
avatar image
Former Member

Navigation between WebDynPro and VC Applications with Parameter passing

Hi All,

I have to call a VC Application from WebDynpro on a Button click by passig parameters to VC application.

According to following Wiki

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/launchingVCwithURLparameters

I created a URL for the VC iView and passed parameters like this

<The IView URL and other portal parameters>&_paramsXmlStr_=<Params><Row BANK_CTRY="US" MAX_ROW="10"></Row></Params>

I used start point to get the Url Parameters.

Created a window for this URL in WebDynPro. It worked perfectly fine.

But it opens in new browser window. For my Requirement It should open in the same window.

I tried using LinkToUrl. But it also opens a new browser window as _self is not supported now.

I tried ExitPlug but getting following error.

"Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application."

Then I used

WDPortalNavigation.navigateAbsolute(

"ROLES://portal_content/myFolder/myiViews/myVCiView",

WDPortalNavigationMode.SHOW_INPLACE,

(String) null,

(String) null,

WDPortalNavigationHistoryMode.NO_DUPLICATIONS,

(String) null,

(String) null,

"parameter1=value&parameter2=value2"

);

Again failed as WebDynPro passes parameters as DynamicParameter. Non-Web Dynpro applications must retrieve the DynamicParameter parameter and parse it themselves.

How can we read those parameter in VC or is there any other option for my Requirement.

Thanks a lot.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 04, 2008 at 09:01 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi All,

      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 chage these Business parameters as DynamicParameter).

      Thanks

      Sreekanth