on 07-04-2006 3:35 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Hi
I am also looking for the same answer. Lets wait and see.
Murali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.