on 10-07-2005 8:57 PM
Hi.
I want to have a button in a view that exits the session and stays in the first view of the application.
I actually have an exit plug in the interface view controller and in the view that has the exit button i'm doing something like:
wdThis.wdGet<Name>InterfaceViewController().wdFirePlugExit();
But i want that the aplication can be used after the exit, and this happends refreshing the browser. I want to simulate this refresh. Can i do that? How?
Thx
regards.
Gregory.
Hi Gregory,
You basically need to call you application back from the current application on an event (like a refresh button).
Try this:
String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
try {
WDDeployableObjectPart deployableObjectPart =
WDDeployableObject.getDeployableObjectPart( deployableObjectName, <Your Application Name>,
WDDeployableObjectPartType.APPLICATION);
String urlToTargetApp = WDURLGenerator.getApplicationURL(deployableObjectPart, new HashMap());
wdThis.wdGet<InterfaceViewController>().wdFirePlugExitApp(urlToTargetApp);
} catch (WDURLException e) {
wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), false);
} catch (WDDeploymentException ex) {
wdComponentAPI.getMessageManager().reportException(ex.getLocalizedMessage(), false);
}
Hope this helps,
Nirav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have a similar problem and I implemented the solution described above. My application does seem to Exit however, it doesn't automatically refresh. Any pointers?
Cheers,
Alfonso
Edited by: Paul Alfonso Castro on May 23, 2009 11:42 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very funny...I found that the String param on the Exit plug has to be defined with an uppercase "U"
String Url not String url
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This didnt work for me....what should the <application name> be? also was the type of outbound plug of type Exit? and you have a String param defined?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.