cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving DYNPARAM from UWL

Former Member
0 Kudos

Hi all Gurus,

I have a problem and was wondering if you guys could enlighten me..

How do I retrieve the parameters DYNPARAM from the UWL when my WD Java application is being executed.

I was following the weblog by Ms Gatling

/people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist

but the examples are in WD ABAP.

Pls assumed that I have completed SWFVISU and re-registered the work items for the system in UWL.

Thanks in advance...

Jansen

Accepted Solutions (1)

Accepted Solutions (1)

Murali_Shanmu
Active Contributor
0 Kudos

Hi

It is possible in WD Java. In SWFVISU place a parameter=Value under DYNPRAM.

Say, Month=April

In your WD Java Code add this on the wdDoInit() :

WDWebContextAdapter.getWebContextAdapter().getRequestParameter("Month")

This code will get you the value of Month as April. Now you may set this value in a variable or context as required.

Murali.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Murali for the prompt reply.

I've tried coding the method you mentioned but somehow getRequestParameter() returns a blank field.

however when I've tried to manually enter a parameter (eg. MyProgApp?WI_ID=12334567) the value was captured.

My SWFVISU config is as follows,

Visualization Type: WD_JAVA Java WebDynpro

APPLICATION: MyProgApp

DYNPARAM: WI_ID=${item.externalId}

PACKAGE: local/MyProgPrg

my coding in wdDoInit():

msgMgr.ReportSuccess(WDWebContextAdapter.getWebContextAdapter().getRequestParameter("WI_ID"));

I've also re-register but somehow nothing's been captured. Miss I miss any step?

thank a billion...

Jansen

Former Member
0 Kudos

Hi All,

Can anyone help? Still stuck in this.... I'll definately award points for helpful answers....

Former Member
0 Kudos

Hi Jansen,

Can you post the XML generated from SWFVISU?

Regards,

Satyajit.

Former Member
0 Kudos

Hi Satyajit,

Thank for your prompt reply, but how do I retrieve the generated XML from SWFVISU?

[EDIT]

Okay, I managed to get the XML.... here goes:

<ItemType name="uwl.task.webflow.TS900000xx.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">

<ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType="TS900000xx" connector="WebFlowConnector"/>

<Actions>

<Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">

<Properties>

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

<Property name="WebDynproDeployableObject" value="local/MyPrg"/>

<Property name="DynamicParameter" value="WI_ID=${item.externalId}"/>

<Property name="display_order_priority" value="5"/>

</Properties>

<Descriptions default=""/>

</Action>

</Actions>

</ItemType>

Look fine to me....any suggestions? Thanks!!

Message was edited by: Jansen Low

Message was edited by: Jansen Low

Former Member
0 Kudos

Hi Jansen,

A few questions:

1. Can you try making this change to your DynamicParameter: DYNPARAM = wi_id=123456? Check if you can retrieve this.

2. IS your WD application deployed on the same server?

Regards,

Satyajit.

Former Member
0 Kudos

Hi all,

Problem was solved. All along the web-dynpro codes are okay. After further investigation by my basis colleague, we discover that there seem to be some conflicting priority in the UWL content configuration, it was hence resolved and the UWL was re-register again.

the web-dynpro code by Murali works like a charm. However I'm using 2004s and it seems like the code was depreciated. A similar updated code would be:

WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("WI_ID")

Thanks Satyajit and Murali for the help.....

Regards,

Jansen

Murali_Shanmu
Active Contributor
0 Kudos

Hi Jason,

Good To know that you have solved the issue. I Was not connected to SDN for a long time. Thanks.

Murali.

Murali_Shanmu
Active Contributor
0 Kudos

Hi

I am also looking for the same answer. Lets wait and see.

Murali.