Skip to Content
avatar image
Former Member

Problem locking error message.

Hi experts,

I've been working in a WebDynpro application that shows error messages in a Errors-Message Area element. The problem is that if I collapse or expand a tray in the view, then the errors displayed in the message area disappear. Is it possible to lock these error messages?

In case it was possible, how could I unlock them when I don't want to keep showing these messages?

Thanks in advance,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 01, 2008 at 10:00 AM

    Another possible solution is to validate fields in the wdDoModifyView, so whenever you perform an action in any UI element the error messages are renewed.

    The only problem would be to use wdComponentAPI because it is a non-static element and wdDoModifyView is static. It can be solved using:

    IWDMessageManager msgMgr = wdThis.wdGetAPI().getComponent().getMessageManager();

    Instead of:

    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();

    msgMgr.reportMessage(IMessageYourAppliactionComp.ERROR, arg1, true);

    Best regards,

    Joan

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 30, 2008 at 05:04 PM

    Hi Jose,

    The message gets refreshed every time action is performed on any UI.

    You can try displaying message in textview instead of using standard message API.

    -Ashutosh

    Add comment
    10|10000 characters needed characters exceeded