cancel
Showing results for 
Search instead for 
Did you mean: 

Returning to the UWL from a WD application

MarkusKlein
Active Contributor
0 Kudos

Hello everybody,

my WD application gets started from the UWL (workitem). How can i get back to the UWL from my WD application?

regards,

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This is what i do to find the current portal server the application is running on.

WDDeployableObjectPart d = wdComponentAPI.getDeployableObjectPart();

try{

String url = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getApplication().getDeployableObjectPart());

wdContext.currentContextElement().setHostName(url.substring(0,url.indexOf("/", 7)));

}catch(WDURLException e){

}

The above code sets the context element with the current hostname for example,

<b>http://hostname:port/</b>

Most of the times the rest of the url for uwl should be similar across all application servers, which could be concatenated to the above path.

Hope this helps

Peace

Answers (2)

Answers (2)

lajitha_menon
Contributor
0 Kudos

Hi Markus,

If the wd application is opened in a new window, you can close the window, so the user sees the work item screen again(see this <a href="https://forums.sdn.sap.com/click.jspa?searchID=210649&messageID=2319340">thread</a> for help on how to do it)

If the wd app is opened in the same window, you can go back to the uwl main page by calling the URL of the uwl iview through exit plug.

Hope that helps, cheers

LM

MarkusKlein
Active Contributor
0 Kudos

Hello guys,

thanks for the answers. I already thought about using the exit plug. The question is how do i determine the URL of the UWL iview, as the application will be running in 3 system landscape. So i cant hardcode the URL.

Former Member
0 Kudos

One way would be to create a link-to-url element in WD and point the reference property of this element to the complete URL of the UWL component.