This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Change the way exceptions are displayed in the Web Portal

Our customer wants to change the way exceptions are displayed in the web portal.
More precisely, we want to replace the popup by something else. As an example, when editing database column via PropertyEditor, and the underlying format script throws an exception, we would like to have the message as red text below the field (like on 'regular' validation errors) instead of the 'annoying' popup.

I tried to find a component or function that is responsible for displaying exceptions, but had no luck. Is it possible to customize this behavior at all?

Parents Reply Children
  • Hii Hanno,

    I don't know for what reason but this isn't working for me...

    Found this in my code:

    IScriptContainer p = ((IScriptContainerProvider) _targetContainer2.Page).ScriptContainer;
    p.AddScript("imx.errors.displayErrorMessage(imx.strings.STD_SessionWasEnded);");

    but when replacing this with:

    IScriptContainer p = ((IScriptContainerProvider) _targetContainer2.Page).ScriptContainer;
    p.AddScript("imx.errors.displayErrorMessage("Invalid Credentials");");

    I am getting several errors.

  • It looks like you are trying to put a double-quoted String inside a double-quoted String. Try escaping the inner quotes with a backslash.