Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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,

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question