Skip to Content

Exit, refresh question.

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2005 at 02:29 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2008 at 05:18 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2008 at 06:50 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2009 at 09:42 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.