Skip to Content
author's profile photo Former Member
Former Member

Can I possibly avoid to leave a view in the WDDOEXIT method?

Hi everybody,

I want to use the WDDOEXIT method to check some values. In error case, the view should not be leave.

The cancel_navigation( ) method in component controller has not the required effect.

With a message_manager->report_exception( ... ) a message is reported but the view can be change.

Is there a way to stop the view change?

Thanks and

kind regards

Christian

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 03:47 PM

    Hi Thomas,

    is there any way to cancel the action in the WDDOBEFOREACTION method??

    thanks Christian

    Edited by: Christian Breitenbach on Jul 23, 2008 5:48 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 23, 2008 at 12:41 PM

    It is called by the Runtime, you never know when it is being called so you can not stop navigation.

    This method is used specially to release locks if any

    Abhi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 01:22 PM

    Hi Cristian

    Why do you want to do validation in the WDDoExit method? How are you changing views? through a button? If you are using a button then check the values in the method for the button click and if you are not happy with the values then just dont navigate to the next view.

    Just trying to understand what you are doing.

    Regards

    Thashin

    Add a comment
    10|10000 characters needed characters exceeded

    • I'm afraid that it is just too late in the Phase Model to try and alter the navigation within WDDOEXIT. It really wasn't what it was intended for. Really the Popup close situation is the one exception where WDDOBEFOREACTION really wouldn't work. I think more appropriate might be to have the standard close button on the popup fire the WDDOBEFOREACTION.

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.