on 12-29-2007 2:15 PM
Hi Experts,
I want to overwrite the error message given by value help of an input field.
Currently its showing the default error message when the selected value does not exist in value help as "String "56fds65fs" does not match the enumeration"
Can i overwrite this message with my custom message as
"Data not found for the given selection"?
Regards,
Ashish Shah
This problem is not yet solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashish,
Thsese messages are controlled by the webdynpro framework, so can't be customized.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sumit, Ayyapparaj,
Can you suggest, how can i provide the user this message " provided value does not exist"?
Should i not add the values in value help using
IModifiableSimpleValueSet valueSet;
valueSet.put(key, value); ?
In that case how do we add these values ?
i want to show the correct error message that is my concern.
Regards,
Ashish Shah
Hi Guys,
There is a solution to this problem.
using the following tutorial.
[A Simple Input Form with Message and Error Service Support|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20archive/a%20simple%20input%20form%20with%20message%20and%20error%20service%20support.pdf]
i generated the error message using
wdThis.wdGetAPI().getComponent().getMessageManager().
reportContextAttributeMessage(
this.wdContext.currentContextElement(),
attributeInfo,
IMessageWD_TutComp.MISSING_INPUT,
new Object[] { fieldLabel },
true);
and raised the error as
wdThis.wdGetAPI().getComponent().getMessageManager().raisePendingException();
Regards,
Ashish Shah
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.