on 01-18-2008 6:07 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please search sdn for "A Simple Input Form" pdf doc which explains how to handle error messages as per your req.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.