Stop execution after exception

Hi

I raise an error and after that i want to stop the excution (i stated Abort Transaction).

Outsystems however aborts the current action but resumes with the preparation of the screen .

How  can i avoid that?

Thanks in advance 

Huub




Solution

You have the exception on a screen action?

What is the method on the button/link?

If is submit the screen will reload and execute the preparation again

You can have an exception handler on the preparation with the Abort Transaction set to Yes

If the exception is raised and handled inside an action you are executing on the preparation, the preparation is going to continue its execution.

If you don't have an exception handle anywhere it should go for the global exception handler.

Some more information here Exception Handling Mechanism - OutSystems
Hope this helps.

Thanks for your quick response  Filipe.

The exception is handled in another action. This action is terminated by the handler  but after that, because i only abort the running action,  the preparation for the screen  is executed.

I want to avoid running the preparation again. 


Huub

Knipsel.PNG

Solution

You have the exception on a screen action?

What is the method on the button/link?

If is submit the screen will reload and execute the preparation again

Thanks Filipe.

That did it! I changed it to Ajax Submit and the problem was solved!

Super.


Huub

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.