cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass a parameter UWL iview to webdynpro java application

former_member199223
Participant
0 Kudos

HI,

I have a webdynpro view which is created from webdynpro java application. This view will be open when the work item is clicked in UWL.

How to pass work item id as a parameter from UWL iview to web dynpro java application,when work itm is clicked in UWL iview.

The problem is i can't get work item id in my webdynpro application.when work itm is clicked in UWL iview.

I want to pass URL or any other possible?

I want to change any XML coding?

if i want to pass a parameter UWL iview to webdynpro java application, How can i get the corrosponding parameter using wen dynpro application?

Tanks & Regadrs,

Boopathi M.

Edited by: boopathi m on Mar 15, 2008 2:17 PM

Edited by: boopathi m on Mar 15, 2008 3:20 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You need to add an action to the UWL XML like this:

<Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="WebDynproApplication" value="+name of your application+"/>
<Property name="WebDynproDeployableObject" value="+deployable object name+"/>
<!-- the following line sends the work item ID as a parameter to the WD application -->
<Property name="DynamicParameter" value="workItemID=${item.externalId}"/>
<Property name="display_order_priority" value="5"/>
</Properties>
<Descriptions default=""/>
</Action>

After this you can access this parameter within the WD application using:

//workItemID is the name of the parameter that we have defined in the XML
String workItemID = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("workItemID");

Regards,

Satyajit.