Get error message and print it to a web page

Nuno_PereiraNuno_Pereira Member Posts: 31
How i can get a error message and print de message but without show error message for the user?
I have this code:

IF NOT CuEcomercial2.RUN THEN BEGIN
ousMsg.WRITE('Error saving order...<br/><br/><a href="javascript:history.back()">Back<a/>');
END;

with this code the error message don't appear but i want to print the error message to the web page. This code are in a codeunit that is allways running and the message error can not appear otherwise the codeunit stop running. But i whant to see when an error accurs what is the error and i want print them in the web page.
Sign In or Register to comment.