I have a small PreAction that I would like to interrupt the ACTION and return the user to the previous screen with an error message.
The relevant code is:
The UIException function should throw a g.UI_Exception true but it does not.
When I hardcode a g.UI_Exception true then the PreAction runs but does not respond with a g.screen.
Is there a way to interrupt an ACTION from a PreAction?
The relevant code is:
Code:
<mvt:assign name="g.ui_exception_code" value="'customeraddress_invalid_addinfo'" /> <mvt:do file="g.module_library_utilities" name="g.result_exception" value="UIException( g.ui_exception_code )" /> <mvt:do name="l.result" file="g.module_library_utilities" value="Message_Error( l.settings:message )" />
When I hardcode a g.UI_Exception true then the PreAction runs but does not respond with a g.screen.
Is there a way to interrupt an ACTION from a PreAction?
Comment