cancel
Showing results for 
Search instead for 
Did you mean: 

Positioning of error message

Former Member
0 Kudos

Hi all,

The error messages normally appear together as a chunk below the form.

Is there anyway to display the error message beside the form field that has an error?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Hope the link below will help you to rectify your problem:

[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20tutorials%20and%20articles%20archive/a%20simple%20input%20form%20with%20message%20and%20error%20service%20support.pdf]

thanks & regards,

Manoj

Former Member
0 Kudos

Hi

If you want to show where the error occured,you can use the

RaisePendingException, using this the system will not allow the curor control until and unless it satisfies the condition,the following is the procedure to achieve this.

1)Goto "WebDynpro Components">"Your Component">Message Pool

2)Add Message

a) Message Key -- >this is the name of the message

b) Message Type ->error/standard/warning/text -->choose the appropriate one

c)Message Text--> this is the message tobe displayed when error occurs

3) Create a UIElement "Message Area" (Click on error message to navigate to error)

following is the code to display the error message

IWDMessageManager manager = null;

IWDAttributeInfo attibute = wdContext.getNodeInfo().getAttribute(IPrivateXXXView.IContextElement.xx);

String message = wdComponentAPI.getTextAccessor().getText(IMessageXX.UR_MESSAGEKEY);

manager.raiseInvalidContextAttributeException(wdContext.currentContextElement(), attibute, message, true);

manager.raisePendingException();// this statement will not allow the pointer to go to next,until it satisfies the condition

Best Regards

Chaitanya.A

Former Member
0 Kudos

Hi,

What i meant was i would like to put the error message beside the form field that is not valid. Instead of having one whole chunk of error message below the form.

Former Member
0 Kudos

Hi,

Please search sdn for "A Simple Input Form" pdf doc which explains how to handle error messages as per your req.