Skip to Content

WebDynproLauncher for UWL

Hi,

I need to read the dynamic parameter while opening the workitem link in UWL. as this application is configured in the XML, the called application should know which line item was clicked in the UWL to open it. Please let me know which class/methods i have to use to fetch the parameters.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 03, 2008 at 02:11 PM

    Hi Sudhahar Ramachandran,

    Refer

    accessing-uwlapi-out-of-web-dynpro-java

    Regards,

    P.Manivannan.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 04, 2008 at 04:39 AM

    Hi,

    Firstly in the xml file, find what parameters are mapped against the workitem :

    You will find somewhat like this :

    <ItemTypes>

    <ItemType name="uwl.task.webflow.TS91100019" connector="WebFlowConnector"

    defaultView="DefaultView" defaultAction="launchSAPAction">

    <ItemTypeCriteria connector="WebFlowConnector" externalType="TS91100019"/>

    <Actions>

    <Action name="launchWebDynPro" handler="SAPWebDynproLauncher">

    <Properties>

    <Property name="WebDynproApplication" value="MyApplication"/>

    sap.com/tc wdtools"/>

    <Property name="DynamicParameter" value="wi_id=${item.externaId}"/>

    </Properties>

    </Action>

    </Actions>

    </ItemType>

    </ItemTypes>

    If you want some dynamic parameters , you need to specify the the property=DynamicParameter and then map what should be the value.And then from the webdynpro application you can fetch the value for the "wi_id" parameter from the request.

    Use the following code

    String workItemID = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("wi_id");

    Thanks

    Ritushree

    Edited by: Ritushree Saha on Jul 4, 2008 10:13 AM

    Edited by: Ritushree Saha on Jul 4, 2008 10:16 AM

    Add comment
    10|10000 characters needed characters exceeded