cancel
Showing results for 
Search instead for 
Did you mean: 

Reload WebDynpro App

Former Member
0 Kudos

Hi, I need to reload a WebDynpro App, because I have to cancel que app and restart it by default.

Any idea?

Regards,

José

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Apurva,

add a plug RestartAppl to your Interface view with a parameter Url of type string, then add a dependency to this interface view from the controller or view where you wrote that code.

Edited by: Marco Rolando on Jun 30, 2008 11:44 AM

Former Member
0 Kudos

Hi,

I am facing the same problem. How did you solve it?

I tred to use the code Srikant provided. But I can not find wdFirePlugRestartAppl method.

Thanks,

Regards

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Do you mean....Re-Deploy the application to the engine?

Regards,

Rich Heilman

Former Member
0 Kudos

No, I mean restart o reload. I have the app already deployed. What I need is if I cancel what I was doing, start go to the begin of the app (the same when press refresh at the browser).

Regards,

Jose

Former Member
0 Kudos

Hi Jose

In the action handler put the following code.


try
		{
			WDDeployableObjectPart currentAppPart = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();
			String appURL = WDURLGenerator.getApplicationURL (currentAppPart); 
			wdThis.wdGet<>InterfaceViewController().wdFirePlugRestartAppl(appURL);
		}
		catch (final WDURLException ex)
				{
					wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(ex), false);
				}
		


		}
		catch (final WDURLException ex)
		{wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(ex), false);}

Hope this helps

Regards

Srikant