cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynproLauncher for UWL

sudhahar_ramachandran
Active Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sudhahar Ramachandran,

Refer

Regards,

P.Manivannan.

Answers (1)

Answers (1)

Former Member
0 Kudos

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"/>

<Property name="WebDynproDeployableObject" value="sap.com/tcwdtools"/>

<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