Skip to Content
avatar image
Former Member

URL params for a Webdyn Pro application

Hi,

can anyone tell me, how a webdynpro application can access one or more URL parameters

which have been passed to it? And if it's possible: is there any special format that the parameter names should

have?

Thanks - Thorsten

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 08, 2004 at 01:09 PM

    Hello Thorsten,

    I found a description for you. Hope this mechanism is described good enough

    so that you can easily follow it:

    The Navigation between two different Web Dynpro Applications can be

    triggered by declaring an Exit Plug inside the Interface View Controller

    of Application 'StartApp' with a parameter named 'Url' of type string.

    The Url-parameter contains the qualified Url of the target Application

    belonging to the target component (may be the same like the start comp).

    For being able to fire this exit plug, a view controller

    must first declare a controller usage for the Component Interface

    View Controller: wdThis.wdGet.fireExitPlug

    (url). The url to Application 'AnotherApp' can be retrieved by calling

    WDURLGenerator.getApplicationURL("local/WebDynpro_InterAppsNavigation",

    "AnotherApp") for a local DC, otherwise "com.sap/WebDynpro_InterAppsNav"

    A URL-Parameter can easily be added to this URL by simple string

    concatenation: urlToAnotherApp="?app.parameter="paramterValue;

    So the caller transfers the paramter via URL. The target (here the

    Startup-Plug-Eventhandler inside InterfaceViewController of 'AnotherApp'

    ('AnotherApp' must declare which startup-plug of which

    Interface View has to be used)) receives this URL parameter in an addi-

    tional Startup-Plug parameter named e.g. 'parameter'. Because the

    URL-parameter was added following the notation app..wdGetContext().currentContext

    Element().setReceivedParameter(parameter);

    Best regards,

    Karin

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Karin,

      It sounds like Metodi and I are basically trying to solve the same problem. We have some external application happining in an IFrame of a Web Dynpro Application. After some certain point in the application being presented in the IFrame, we want the Web Dynpro application to respond.

      It seems like what you are suggesting could work, but I have one question with your answer:

      If I have the application that is presented in the IFrame then forwards to a new Web Dynpro URL that passes some parameter, how do I raise an event (or communicate in any way) from the Web Dynpro application that is now being presented through an IFrame in an embedding Web Dynpro application to the embedding Web Dynpro application itself?

      Are we saying that a portal event raised by an application that is presented through an IFrame in a Web Dynpro application will actually be passed through the IFrame such that the component in the main Web Dynpro application (the one with the IFrame) can respond to the event?

      That would be fantastic if it were true, but it seems like having the event pass through the IFrame to the Web Dynpro component may be too good to be true. This is really my preferred solution to my questions posed about the session identifier string.

      Thanks,

      --Greg